Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
add_plugin_load_paths()
public
Adds the load paths for every plugin into the $LOAD_PATH. Plugin load paths are added after the
application’s lib directory, to ensure that an application
can always override code within a plugin.
Plugin load paths are also added to
Dependencies.load_paths, and Dependencies.load_once_paths.
Show source
def add_plugin_load_paths
plugins.each do |plugin|
plugin.load_paths.each do |path|
$LOAD_PATH.insert(application_lib_index + 1, path)
ActiveSupport::Dependencies.load_paths << path
unless configuration.reload_plugins?
ActiveSupport::Dependencies.load_once_paths << path
end
end
end
$LOAD_PATH.uniq!
end