Class: Caboose::AdminController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Caboose::AdminController
- Defined in:
- app/controllers/caboose/admin_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /admin.
-
#station ⇒ Object
GET /station.
Methods inherited from ApplicationController
#before_action, #before_before_action, #logged_in?, #logged_in_user, #login_user, #reject_param, #user_is_allowed, #validate_token, #var
Instance Method Details
#index ⇒ Object
GET /admin
6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/caboose/admin_controller.rb', line 6 def index return if !user_is_allowed('admin', 'view') @mods = [ { 'href' => '/admin/users' , 'text' => 'Users' }, { 'href' => '/admin/roles' , 'text' => 'Roles' }, { 'href' => '/admin/permissions' , 'text' => 'Permissions' } ] @mods = Caboose.plugin_hook('admin_nav', @mods) end |
#station ⇒ Object
GET /station
19 20 21 22 |
# File 'app/controllers/caboose/admin_controller.rb', line 19 def station @user = logged_in_user render :layout => 'caboose/station' end |