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