Class: Admin::AdminController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::AdminController
- 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
Instance Method Summary collapse
-
#authenticate_admin! ⇒ Object
Defers to #authenticate_admin! in ApplicationController if it is defined If not, returns false/does nothing.
- #dashboard ⇒ Object
- #styleguide ⇒ Object
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 |
#dashboard ⇒ Object
13 14 15 |
# File 'app/controllers/admin/admin_controller.rb', line 13 def dashboard render 'admin/dashboard' end |
#styleguide ⇒ Object
17 18 19 |
# File 'app/controllers/admin/admin_controller.rb', line 17 def styleguide render 'admin/styleguide' end |