Class: Spree::AdvancedReporting::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/spree_advanced_reporting.rb

Class Method Summary collapse

Class Method Details

.activateObject



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