From cc2d6a0b93251fce06bab15c52dbe0a5d5a8342c Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Mon, 31 Mar 2008 06:53:44 +0000 Subject: Allow files in plugins to be reloaded like the rest of the application. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/rails/plugin/loader.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'railties/lib/rails/plugin/loader.rb') 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! -- cgit v1.2.3