diff options
Diffstat (limited to 'railties/lib/rails/plugin')
-rw-r--r-- | railties/lib/rails/plugin/loader.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/plugin/loader.rb b/railties/lib/rails/plugin/loader.rb index 438afa4d32..1e542dd038 100644 --- a/railties/lib/rails/plugin/loader.rb +++ b/railties/lib/rails/plugin/loader.rb @@ -46,7 +46,9 @@ module Rails plugin.load_paths.each do |path| $LOAD_PATH.insert(application_lib_index + 1, path) Dependencies.load_paths << path - Dependencies.load_once_paths << path + unless Rails.configuration.reload_plugins? + Dependencies.load_once_paths << path + end end end $LOAD_PATH.uniq! |