Class: Spree::ExtensionLoader::DependenciesObserver

Inherits:
MethodObserver show all
Defined in:
lib/spree/extension_loader.rb

Instance Attribute Summary collapse

Attributes inherited from MethodObserver

#result, #target

Instance Method Summary collapse

Methods inherited from MethodObserver

instances, new, #observe

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

#configObject

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