Sha256: 9978028990e05f596066de525c7c8402303a584742bdb08df755e0a854ee5d84
Contents?: true
Size: 467 Bytes
Versions: 4
Compression:
Stored size: 467 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 end end
Version data entries
4 entries across 4 versions & 1 rubygems