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.
# File railties/lib/rails/plugin/loader.rb, line 44 def add_plugin_load_paths plugins.each do |plugin| plugin.load_paths.each do |path| $LOAD_PATH.insert(application_lib_index + 1, path) Dependencies.load_paths << path Dependencies.load_once_paths << path end end $LOAD_PATH.uniq! end