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

Version Path
mix-rails-0.26.3 mix-rails-auth/lib/mix-rails-auth/engine.rb
mix-rails-auth-0.26.3 lib/mix-rails-auth/engine.rb
mix-rails-0.26.2 mix-rails-auth/lib/mix-rails-auth/engine.rb
mix-rails-auth-0.26.2 lib/mix-rails-auth/engine.rb
mix-rails-0.26.1 mix-rails-auth/lib/mix-rails-auth/engine.rb
mix-rails-auth-0.26.1 lib/mix-rails-auth/engine.rb
mix-rails-0.26.0 mix-rails-auth/lib/mix-rails-auth/engine.rb
mix-rails-auth-0.26.0 lib/mix-rails-auth/engine.rb
mix-rails-0.25.1 mix-rails-auth/lib/mix-rails-auth/engine.rb
mix-rails-auth-0.25.1 lib/mix-rails-auth/engine.rb
mix-rails-0.25.0 mix-rails-auth/lib/mix-rails-auth/engine.rb
mix-rails-auth-0.25.0 lib/mix-rails-auth/engine.rb
mix-rails-0.24.1 mix-rails-auth/lib/mix-rails-auth/engine.rb
mix-rails-auth-0.24.1 lib/mix-rails-auth/engine.rb
mix-rails-0.24.0 mix-rails-auth/lib/mix-rails-auth/engine.rb
mix-rails-auth-0.24.0 lib/mix-rails-auth/engine.rb