refinery / refinerycms-authentication-devise

Devise based authentication extension for Refinery CMS
MIT License
17 stars 61 forks source link

Fixed generator loading, deprecated old Refinery::Authentication#configure #8

Closed parndt closed 9 years ago

parndt commented 9 years ago

Fixes #6

Proof:

Loading development environment (Rails 4.2.3)
irb(main):001:0> Refinery::Authentication::Devise.superuser_can_assign_roles
=> false
irb(main):002:0> Refinery::Authentication.configure {|c| c.superuser_can_assign_roles = true}

-- DEPRECATION WARNING --
The use of 'Refinery::Authentication#configure' is deprecated and will be removed at version 1.1 of refinerycms-authentication-devise.
Please use Refinery::Authentication::Devise#configure instead.
=> true
irb(main):003:0> Refinery::Authentication::Devise.superuser_can_assign_roles
=> true
irb(main):001:0> Refinery::Authentication::Devise.superuser_can_assign_roles
=> false
irb(main):002:0> Refinery::Authentication.superuser_can_assign_roles

-- DEPRECATION WARNING --
The use of 'Refinery::Authentication#superuser_can_assign_roles' is deprecated and will be removed at version 1.1 of refinerycms-authentication-devise.
Please use Refinery::Authentication::Devise#superuser_can_assign_roles instead.
=> false
irb(main):003:0> Refinery::Authentication.superuser_can_assign_roles = true

-- DEPRECATION WARNING --
The use of 'Refinery::Authentication#superuser_can_assign_roles=' is deprecated and will be removed at version 1.1 of refinerycms-authentication-devise.
Please use Refinery::Authentication::Devise#superuser_can_assign_roles= instead.
=> true
irb(main):004:0> Refinery::Authentication.superuser_can_assign_roles

-- DEPRECATION WARNING --
The use of 'Refinery::Authentication#superuser_can_assign_roles' is deprecated and will be removed at version 1.1 of refinerycms-authentication-devise.
Please use Refinery::Authentication::Devise#superuser_can_assign_roles instead.
=> true
irb(main):005:0> Refinery::Authentication::Devise.superuser_can_assign_roles
=> true
Loading development environment (Rails 4.2.3)
irb(main):001:0> Refinery::Authentication.email_from_name

-- DEPRECATION WARNING --
The use of 'Refinery::Authentication#email_from_name' is deprecated and will be removed at version 1.1 of refinerycms-authentication-devise.
Please use Refinery::Authentication::Devise#email_from_name instead.
=> "no-reply"
irb(main):002:0> Refinery::Authentication.email_from_name = "something-else"

-- DEPRECATION WARNING --
The use of 'Refinery::Authentication#email_from_name=' is deprecated and will be removed at version 1.1 of refinerycms-authentication-devise.
Please use Refinery::Authentication::Devise#email_from_name= instead.
=> "something-else"
irb(main):003:0> Refinery::Authentication.email_from_name

-- DEPRECATION WARNING --
The use of 'Refinery::Authentication#email_from_name' is deprecated and will be removed at version 1.1 of refinerycms-authentication-devise.
Please use Refinery::Authentication::Devise#email_from_name instead.
=> "something-else"
irb(main):004:0> Refinery::Authentication::Devise.email_from_name
=> "something-else"