Class: Antispam::ApplicationController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Antispam::ApplicationController
- Defined in:
- app/controllers/antispam/application_controller.rb
Direct Known Subclasses
BlocksController, ChallengesController, ClearsController, ValidateController
Instance Method Summary collapse
Instance Method Details
#must_be_admin ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/antispam/application_controller.rb', line 3 def must_be_admin begin render plain: 'Not available.' unless is_admin? rescue render plain: 'Not available.' end end |