Class: SpreeEditor::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- SpreeEditor::Engine
- Defined in:
- lib/spree_editor.rb
Class Method Summary collapse
Class Method Details
.activate ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/spree_editor.rb', line 7 def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| Rails.application.config.cache_classes ? require(c) : load(c) end Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/**/*.rb")) do |c| Rails.application.config.cache_classes ? require(c) : load(c) end end |