Module: Refinery::Authentication

Extended by:
Authentication
Included in:
Authentication
Defined in:
lib/refinery/authentication.rb,
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,
lib/generators/refinery/authentication/devise/devise_generator.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: Devise Classes: DeviseGenerator

Instance Method Summary collapse

Instance Method Details

#configure(&block) ⇒ Object


5
6
7
8
9
10
11
12
13
# File 'lib/refinery/authentication.rb', line 5

def configure(&block)
  Refinery.deprecate(
    'Refinery::Authentication#configure',
    when: '1.1 of refinerycms-authentication-devise',
    replacement: 'Refinery::Authentication::Devise#configure'
  )

  Refinery::Authentication::Devise.configure(&block)
end

#email_from_nameObject


35
36
37
38
39
40
41
42
43
# File 'lib/refinery/authentication.rb', line 35

def email_from_name
  Refinery.deprecate(
    'Refinery::Authentication#email_from_name',
    when: '1.1 of refinerycms-authentication-devise',
    replacement: 'Refinery::Authentication::Devise#email_from_name'
  )

  Refinery::Authentication::Devise.email_from_name
end

#email_from_name=(value) ⇒ Object


45
46
47
48
49
50
51
52
53
# File 'lib/refinery/authentication.rb', line 45

def email_from_name=(value)
  Refinery.deprecate(
    'Refinery::Authentication#email_from_name=',
    when: '1.1 of refinerycms-authentication-devise',
    replacement: 'Refinery::Authentication::Devise#email_from_name='
  )

  Refinery::Authentication::Devise.email_from_name = value
end

#superuser_can_assign_rolesObject


15
16
17
18
19
20
21
22
23
# File 'lib/refinery/authentication.rb', line 15

def superuser_can_assign_roles
  Refinery.deprecate(
    'Refinery::Authentication#superuser_can_assign_roles',
    when: '1.1 of refinerycms-authentication-devise',
    replacement: 'Refinery::Authentication::Devise#superuser_can_assign_roles'
  )

  Refinery::Authentication::Devise.superuser_can_assign_roles
end

#superuser_can_assign_roles=(value) ⇒ Object


25
26
27
28
29
30
31
32
33
# File 'lib/refinery/authentication.rb', line 25

def superuser_can_assign_roles=(value)
  Refinery.deprecate(
    'Refinery::Authentication#superuser_can_assign_roles=',
    when: '1.1 of refinerycms-authentication-devise',
    replacement: 'Refinery::Authentication::Devise#superuser_can_assign_roles='
  )

  Refinery::Authentication::Devise.superuser_can_assign_roles = value
end