Method: Rails::Plugin::Loader#initialize
- Defined in:
- lib/rails/plugin/loader.rb
#initialize(initializer) ⇒ Loader
Creates a new Plugin::Loader instance, associated with the given Rails::Initializer. This default implementation automatically locates all plugins, and adds all plugin load paths, when it is created. The plugins are then fully loaded (init.rb is evaluated) when load_plugins is called.
It is the loader’s responsibility to ensure that only the plugins specified in the configuration are actually loaded, and that the order defined is respected.
16 17 18 |
# File 'lib/rails/plugin/loader.rb', line 16 def initialize(initializer) @initializer = initializer end |