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!, #record_not_found!

Instance Method Details

#authenticate_admin!Object (private)

deny access unless current_user is an editor


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

def authenticate_admin!
  access_denied! unless current_user.admin?
end