Class: Rapidfire::ApplicationController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Rapidfire::ApplicationController
- Defined in:
- app/controllers/rapidfire/application_controller.rb
Direct Known Subclasses
AnswerGroupsController, QuestionGroupsController, QuestionsController
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 |