Class: Radiant::ExtensionLoader::DependenciesObserver

Inherits:
MethodObserver
  • Object
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

#initializeDependenciesObserver

(rails_config)



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

def initialize #(rails_config)
  #@config = rails_config
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



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

def config
  @config
end

Instance Method Details

#after_clear(*args) ⇒ Object



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

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

#before_clear(*args) ⇒ Object



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

def before_clear(*args)
  ExtensionLoader.deactivate_extensions
end