Sha256: 108937114a33457c0f1b115f8eb22c2404f7bef600e817bd1df5ae5f94b63cbb
Contents?: true
Size: 586 Bytes
Versions: 24
Compression:
Stored size: 586 Bytes
Contents
module Caboose class AdminController < ApplicationController # GET /admin 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 # GET /station def station @user = logged_in_user render :layout => 'caboose/station' end end end
Version data entries
24 entries across 24 versions & 1 rubygems