Class: SpreefineryCore::Engine

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

Class Method Summary collapse

Class Method Details

.activateObject



22
23
24
25
26
# File 'lib/spreefinery_core/engine.rb', line 22

def self.activate
  Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
    Rails.configuration.cache_classes ? require(c) : load(c)
  end
end