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:
parent
74ab3e9a05
commit
031351224a
1 changed files with 3 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue