Module: Refinery::Authentication::Devise

Includes:
ActiveSupport::Configurable
Defined in:
lib/refinery/authentication/devise.rb,
lib/refinery/authentication/devise/engine.rb,
lib/refinery/authentication/devise/system.rb,
app/models/refinery/authentication/devise/role.rb,
app/models/refinery/authentication/devise/user.rb,
lib/refinery/authentication/devise/configuration.rb,
app/models/refinery/authentication/devise/nil_user.rb,
app/models/refinery/authentication/devise/roles_users.rb,
app/models/refinery/authentication/devise/user_plugin.rb,
app/mailers/refinery/authentication/devise/user_mailer.rb,
lib/refinery/authentication/devise/authorisation_adapter.rb,
lib/refinery/authentication/devise/authorisation_manager.rb,
app/controllers/refinery/authentication/devise/users_controller.rb,
app/controllers/refinery/authentication/devise/sessions_controller.rb,
app/controllers/refinery/authentication/devise/passwords_controller.rb,
app/controllers/refinery/authentication/devise/admin/users_controller.rb

Defined Under Namespace

Modules: Admin, System Classes: AuthorisationAdapter, AuthorisationManager, Engine, NilUser, PasswordsController, Role, RolesUsers, SessionsController, User, UserMailer, UserPlugin, UsersController

Class Method Summary collapse

Class Method Details

.email_from_nameObject



12
13
14
15
16
17
18
# File 'lib/refinery/authentication/devise/configuration.rb', line 12

def email_from_name
  ::I18n.t(
    'email_from_name',
    scope: 'refinery.authentication.config',
    default: config.email_from_name
  )
end

.factory_pathsObject



17
18
19
# File 'lib/refinery/authentication/devise.rb', line 17

def factory_paths
  @factory_paths ||= [ root.join("spec/factories").to_s ]
end

.rootObject



21
22
23
# File 'lib/refinery/authentication/devise.rb', line 21

def root
  @root ||= Pathname.new(File.expand_path('../../../', __FILE__))
end