Sha256: 9efb52ef86d41c41f3826323b42281d570498c4c144b742a724d371728e592e9

Contents?: true

Size: 622 Bytes

Versions: 5

Compression:

Stored size: 622 Bytes

Contents

require 'alchemy/devise/ability'

Alchemy.register_ability(Alchemy::Devise::Ability)

Alchemy::Modules.register_module({
  name: 'users',
  engine_name: 'alchemy',
  position: 4.1,
  navigation: {
    name: 'modules.users',
    controller: 'alchemy/admin/users',
    action: 'index',
    icon: 'users'
  }
})

Alchemy.user_class_name = 'Alchemy::User'
Alchemy.signup_path     = '/admin/signup'
Alchemy.login_path      = '/admin/login'
Alchemy.logout_path     = '/admin/logout'

if Alchemy.respond_to?(:logout_method)
  Rails.application.config.after_initialize do
    Alchemy.logout_method = Devise.sign_out_via
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alchemy-devise-5.0.1 config/initializers/alchemy.rb
alchemy-devise-5.0.0 config/initializers/alchemy.rb
alchemy-devise-4.6.0 config/initializers/alchemy.rb
alchemy-devise-4.5.0 config/initializers/alchemy.rb
alchemy-devise-4.4.0 config/initializers/alchemy.rb