Class: Spree::ExtensionLoader::DependenciesObserver
- Inherits:
-
MethodObserver
- Object
- MethodObserver
- Spree::ExtensionLoader::DependenciesObserver
- Defined in:
- lib/spree/extension_loader.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Attributes inherited from MethodObserver
Instance Method Summary collapse
- #after_clear(*args) ⇒ Object
-
#initialize(rails_config) ⇒ DependenciesObserver
constructor
A new instance of DependenciesObserver.
Methods inherited from MethodObserver
Constructor Details
#initialize(rails_config) ⇒ DependenciesObserver
Returns a new instance of DependenciesObserver.
13 14 15 |
# File 'lib/spree/extension_loader.rb', line 13 def initialize(rails_config) @config = rails_config end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
11 12 13 |
# File 'lib/spree/extension_loader.rb', line 11 def config @config end |
Instance Method Details
#after_clear(*args) ⇒ Object
17 18 19 20 |
# File 'lib/spree/extension_loader.rb', line 17 def after_clear(*args) ExtensionLoader.load_extensions ExtensionLoader.activate_extensions end |