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