1
0
Fork 0
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:
José Valim 2011-03-02 10:13:12 +01:00
parent fe2d7b5ffe
commit 307fe6cb60

View file

@ -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