Class: Admin::AdminController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/admin_controller.rb

Overview

Public: Base admin system controller. Contains authentication, a dashboard, and a style guide. Anything that must affect all admin pages should be added here.

Direct Known Subclasses

CEOController

Instance Method Summary collapse

Instance Method Details

#authenticate_admin!Object

Defers to #authenticate_admin! in ApplicationController if it is defined If not, returns false/does nothing



23
24
25
# File 'app/controllers/admin/admin_controller.rb', line 23

def authenticate_admin!
  super rescue false
end

#dashboardObject



13
14
15
# File 'app/controllers/admin/admin_controller.rb', line 13

def dashboard
  render 'admin/dashboard'
end

#styleguideObject



17
18
19
# File 'app/controllers/admin/admin_controller.rb', line 17

def styleguide
  render 'admin/styleguide'
end