Method: ClassX::Pluggable#load_components
- Defined in:
- lib/classx/pluggable.rb
#load_components(type, components) ⇒ Object
if you customize Plugin name space. you can use this instead of load_plugins.
app.load_components('engine', [
{ :module => "YourApp::Engine::Foo", :confiig => { :some_config => "foo"} },
{ :module => "+Bar", :confiig => { } }, # It's same meaning of YourApp::Engine::Bar
])
100 101 102 103 104 |
# File 'lib/classx/pluggable.rb', line 100 def load_components type, components components.each do |component| load_component type, component end end |