Class: Radiant::ExtensionLoader::DependenciesObserver

Inherits:
MethodObserver show all
Defined in:
lib/radiant/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.



10
11
12
# File 'lib/radiant/extension_loader.rb', line 10

def initialize(rails_config)
  @config = rails_config
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



8
9
10
# File 'lib/radiant/extension_loader.rb', line 8

def config
  @config
end

Instance Method Details

#after_clear(*args) ⇒ Object



18
19
20
21
# File 'lib/radiant/extension_loader.rb', line 18

def after_clear(*args)
  ExtensionLoader.load_extensions
  ExtensionLoader.activate_extensions
end

#before_clear(*args) ⇒ Object



14
15
16
# File 'lib/radiant/extension_loader.rb', line 14

def before_clear(*args)
  ExtensionLoader.deactivate_extensions
end