Class: SpreeTemando::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- SpreeTemando::Engine
- Defined in:
- lib/spree_temando/engine.rb
Class Method Summary collapse
Class Method Details
.activate ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/spree_temando/engine.rb', line 5 def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../../app/overrides/*.rb")) do |c| Rails.application.config.cache_classes ? require(c) : load(c) end Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/*_decorator*.rb")) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end Temando::Api::Base.logger = Rails.logger end |