Class: Caboose::AdminController

Inherits:
ApplicationController show all
Defined in:
app/controllers/caboose/admin_controller.rb

Instance Method Summary collapse

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

#indexObject

GET /admin



6
7
8
# File 'app/controllers/caboose/admin_controller.rb', line 6

def index
  return if !user_is_allowed('admin', 'view')      
end

#stationObject

GET /station



11
12
13
14
# File 'app/controllers/caboose/admin_controller.rb', line 11

def station
  @user = logged_in_user
  render :layout => 'caboose/station'
end