Sha256: 36e2a3f4e0b2fa65f850bdd4aed1be936e612045d48b34133fa29609f8031dcd
Contents?: true
Size: 645 Bytes
Versions: 16
Compression:
Stored size: 645 Bytes
Contents
module MixRailsAuth class Engine < ::Rails::Engine config.generators do |g| g.test_framework :rspec g.integration_tool :rspec end initializer "mix-rails-writer.setup_menu", after: "admix.setup_menu" do ActiveMenu::get('admix-nav') do |nav| nav.get(:general) do |general| general.child :users do |users| users.text Proc.new {t('users.users')} users.href Proc.new {admix_users_url} users.visible Proc.new {current_user.has_role? :admin} end end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems