class method
self.new
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.new(initializer)
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.
Parameters
-
initializerreq
Source
# File railties/lib/rails/plugin/loader.rb, line 16
def initialize(initializer)
@initializer = initializer
end
Defined in railties/lib/rails/plugin/loader.rb line 16
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Plugin::Loader