Class: Admin::ApplicationController

Inherits:
ApplicationController show all
Defined in:
app/controllers/admin/application_controller.rb

Overview

This controller contain the methods shared for all admin controller

Direct Known Subclasses

GroupsController, UsersController

Instance Method Summary collapse

Methods inherited from ApplicationController

#access_denied!, #default_url_options, #record_not_found!, #set_turbo, #switch_locale

Instance Method Details

#authenticate_admin!Object (private)

deny access unless current_user is an editor



11
12
13
# File 'app/controllers/admin/application_controller.rb', line 11

def authenticate_admin!
  access_denied! unless current_user.admin?
end