diff options
author | Rick Olson <technoweenie@gmail.com> | 2008-03-31 06:53:44 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2008-03-31 06:53:44 +0000 |
commit | cc2d6a0b93251fce06bab15c52dbe0a5d5a8342c (patch) | |
tree | b3bb8eb90221ae4c83fea9a78238abb9c39e8641 /railties/lib/rails | |
parent | a8ac5300e657f523fd27c54283b3fd27fb1afdd8 (diff) | |
download | rails-cc2d6a0b93251fce06bab15c52dbe0a5d5a8342c.tar.gz rails-cc2d6a0b93251fce06bab15c52dbe0a5d5a8342c.tar.bz2 rails-cc2d6a0b93251fce06bab15c52dbe0a5d5a8342c.zip |
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
Diffstat (limited to 'railties/lib/rails')
-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! |