mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Revert two previous commits. Rails is broken, it needs to be fixed instead.
This commit is contained in:
parent
fe2d7b5ffe
commit
307fe6cb60
1 changed files with 2 additions and 1 deletions
|
@ -50,6 +50,7 @@ module Devise
|
||||||
@singular = (options[:singular] || @scoped_path.tr('/', '_').singularize).to_sym
|
@singular = (options[:singular] || @scoped_path.tr('/', '_').singularize).to_sym
|
||||||
|
|
||||||
@class_name = (options[:class_name] || name.to_s.classify).to_s
|
@class_name = (options[:class_name] || name.to_s.classify).to_s
|
||||||
|
@ref = ActiveSupport::Dependencies.ref(@class_name)
|
||||||
|
|
||||||
@path = (options[:path] || name).to_s
|
@path = (options[:path] || name).to_s
|
||||||
@path_prefix = options[:path_prefix]
|
@path_prefix = options[:path_prefix]
|
||||||
|
@ -72,7 +73,7 @@ module Devise
|
||||||
|
|
||||||
# Gives the class the mapping points to.
|
# Gives the class the mapping points to.
|
||||||
def to
|
def to
|
||||||
ActiveSupport::Inflector.constantize(@class_name)
|
@ref.get
|
||||||
end
|
end
|
||||||
|
|
||||||
def strategies
|
def strategies
|
||||||
|
|
Loading…
Add table
Reference in a new issue