def undestroy
      @resource = resource_proxy(true).find(params[:id])
      set_resource_instance

      @resource.deleted_at = nil
      @resource.save

      respond_with(@resource, location: { action: :index })

      # flash[:notice] = "#{resource_name} has been undeleted"
      # redirect_to action: :index
    end
def undestroy
      @resource = resource_proxy(true).find(params[:id])
      set_resource_instance

      @resource.deleted_at = nil
      @resource.save

      respond_with(@resource, location: { action: :index })

      # flash[:notice] = "#{resource_name} has been undeleted"
      # redirect_to action: :index
    end
only works if deleting of resources occurs by setting
 the deleted_at field