Class: Radiant::ExtensionLoader::DependenciesObserver
- Inherits:
-
MethodObserver
- Object
- MethodObserver
- Radiant::ExtensionLoader::DependenciesObserver
- Defined in:
- lib/radiant/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
- #before_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.
10 11 12 |
# File 'lib/radiant/extension_loader.rb', line 10 def initialize(rails_config) @config = rails_config end |
Instance Attribute Details
#config ⇒ Object
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 |