Open-Source-Access-Control-.../app/controllers/resources_controller.rb
2014-02-09 02:08:08 -07:00

14 lines
294 B
Ruby
Executable File

class ResourcesController < ApplicationController
load_and_authorize_resource
before_filter :authenticate_user!
def destroy
@resource.destroy
respond_to do |format|
format.html { redirect_to(request.env["HTTP_REFERER"]) }
format.json { head :ok }
end
end
end