Class: Rapidfire::ApplicationController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/rapidfire/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_administrator!Object



5
6
7
8
9
# File 'app/controllers/rapidfire/application_controller.rb', line 5

def authenticate_administrator!
  unless can_administer?
    raise Rapidfire::AccessDenied.new("cannot administer questions")
  end
end