1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Remove usage of ActiveSupport::Dependencies 3.x API.

This commit is contained in:
Lucas Mazza 2016-05-03 13:52:33 -03:00
parent 74ab3e9a05
commit 031351224a
No known key found for this signature in database
GPG key ID: C009F9A6BE4A44CB

View file

@ -281,7 +281,7 @@ module Devise
end
class Getter
def initialize name
def initialize(name)
@name = name
end
@ -291,12 +291,8 @@ module Devise
end
def self.ref(arg)
if defined?(ActiveSupport::Dependencies::ClassCache)
ActiveSupport::Dependencies::reference(arg)
Getter.new(arg)
else
ActiveSupport::Dependencies.ref(arg)
end
ActiveSupport::Dependencies.reference(arg)
Getter.new(arg)
end
def self.available_router_name