diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-11-08 15:41:46 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-11-08 15:41:46 +0000 |
commit | fcfcc707d4ae94441496d36e78a598914df3cebc (patch) | |
tree | 6b25ab4300aa7e617af76551a4c06016745cc278 /railties/lib/rails | |
parent | f1b1af88b530c101dc4bf6157bbd1f9c39a670d7 (diff) | |
download | rails-fcfcc707d4ae94441496d36e78a598914df3cebc.tar.gz rails-fcfcc707d4ae94441496d36e78a598914df3cebc.tar.bz2 rails-fcfcc707d4ae94441496d36e78a598914df3cebc.zip |
Ensure the plugin loader only loads plugins once. Closes #10102 [haruki_zaemon]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/plugin.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/plugin.rb b/railties/lib/rails/plugin.rb index 2feb90bf14..be392195d4 100644 --- a/railties/lib/rails/plugin.rb +++ b/railties/lib/rails/plugin.rb @@ -34,6 +34,7 @@ module Rails # Evaluates a plugin's init.rb file def load(initializer) + return if loaded? report_nonexistant_or_empty_plugin! unless valid? evaluate_init_rb(initializer) @loaded = true |