From 031351224afcf21af78d21ad1e715a6a7093e043 Mon Sep 17 00:00:00 2001 From: Lucas Mazza Date: Tue, 3 May 2016 13:52:33 -0300 Subject: [PATCH] Remove usage of `ActiveSupport::Dependencies` 3.x API. --- lib/devise.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/devise.rb b/lib/devise.rb index 9df03a4c..8bbb58b0 100755 --- a/lib/devise.rb +++ b/lib/devise.rb @@ -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