From 8546fced779b3af1fe2449d6ef0541643b3cc247 Mon Sep 17 00:00:00 2001 From: Kurt Funai Date: Mon, 17 Aug 2015 15:50:58 -0400 Subject: [PATCH] Upgraded Rails::Engine calls to #engines to use new Rails-4-1 methods. --- lib/spree/auth/engine.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/spree/auth/engine.rb b/lib/spree/auth/engine.rb index 10aff99ce..f2b992241 100644 --- a/lib/spree/auth/engine.rb +++ b/lib/spree/auth/engine.rb @@ -50,15 +50,15 @@ def self.activate end def self.backend_available? - @@backend_available ||= Rails::Engine::Railties.engines.map{ |e| e.class.to_s }.include?('Spree::Backend::Engine') + @@backend_available ||= ::Rails::Engine.subclasses.map(&:instance).map{ |e| e.class.to_s }.include?('Spree::Backend::Engine') end def self.dash_available? - @@dash_available ||= Rails::Engine::Railties.engines.map{ |e| e.class.to_s }.include?('Spree::Dash::Engine') + @@dash_available ||= ::Rails::Engine.subclasses.map(&:instance).map{ |e| e.class.to_s }.include?('Spree::Dash::Engine') end def self.frontend_available? - @@frontend_available ||= Rails::Engine::Railties.engines.map{ |e| e.class.to_s }.include?('Spree::Frontend::Engine') + @@frontend_available ||= ::Rails::Engine.subclasses.map(&:instance).map{ |e| e.class.to_s }.include?('Spree::Frontend::Engine') end if self.backend_available?