Class: SolidusVolumePricing::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- SolidusVolumePricing::Engine
- Includes:
- SolidusSupport::EngineExtensions
- Defined in:
- lib/solidus_volume_pricing/engine.rb
Class Method Summary collapse
Class Method Details
.activate ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/solidus_volume_pricing/engine.rb', line 20 def self.activate Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')).sort.each do |c| Rails.configuration.cache_classes ? require(c) : load(c) Rails.autoloaders.main.ignore(c) if Rails.autoloaders.zeitwerk_enabled? end ::Spree::BackendConfiguration::CONFIGURATION_TABS << :volume_price_models end |