Class: Antispam::ApplicationController

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

Instance Method Summary collapse

Instance Method Details

#must_be_adminObject



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