Module: SolidusSupport::EngineExtensions
- Includes:
- ActiveSupport::Deprecation::DeprecatedConstantAccessor
- Included in:
- SolidusIdentifiers::Engine
- Defined in:
- lib/solidus_support/engine_extensions.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(engine) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/solidus_support/engine_extensions.rb', line 9 def self.included(engine) engine.extend ClassMethods engine.class_eval do solidus_decorators_root.glob('*') do |decorators_folder| config.autoload_paths += [decorators_folder] end config.to_prepare(&method(:activate)) enable_solidus_engine_support('backend') if SolidusSupport.backend_available? enable_solidus_engine_support('frontend') if SolidusSupport.frontend_available? enable_solidus_engine_support('api') if SolidusSupport.api_available? end end |