Class: Spree::AdvancedReporting::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- Spree::AdvancedReporting::Engine
- Defined in:
- lib/spree_advanced_reporting.rb
Class Method Summary collapse
Class Method Details
.activate ⇒ Object
15 16 17 18 19 |
# File 'lib/spree_advanced_reporting.rb', line 15 def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator.rb")).each do |c| Rails.env.production? ? require(c) : load(c) end end |