mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Revert two previous commits. Rails is broken, it needs to be fixed instead.
This commit is contained in:
@@ -50,6 +50,7 @@ module Devise
|
||||
@singular = (options[:singular] || @scoped_path.tr('/', '_').singularize).to_sym
|
||||
|
||||
@class_name = (options[:class_name] || name.to_s.classify).to_s
|
||||
@ref = ActiveSupport::Dependencies.ref(@class_name)
|
||||
|
||||
@path = (options[:path] || name).to_s
|
||||
@path_prefix = options[:path_prefix]
|
||||
@@ -72,7 +73,7 @@ module Devise
|
||||
|
||||
# Gives the class the mapping points to.
|
||||
def to
|
||||
ActiveSupport::Inflector.constantize(@class_name)
|
||||
@ref.get
|
||||
end
|
||||
|
||||
def strategies
|
||||
|
||||
Reference in New Issue
Block a user