1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix problems with the plugin loader where plugins could override 'name' and prevent loading. Closes #3297

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Michael Koziarski 2006-01-13 09:40:05 +00:00
parent 30c6bd9b31
commit 35c50bf938
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,7 @@
*SVN*
* Corrected problems with plugin loader where plugins set 'name' incorrectly #3297 [anna@wota.jp]
* Make migration generator only report on exact duplicate names, not partial dupliate names. #3442 [jeremy@planetargon.com Marcel Molina Jr.]
* Fix typo in mailer generator USAGE. #3458 [chriztian.steinmeier@gmail.com]

View file

@ -311,11 +311,12 @@ module Rails
# Allow plugins to reference the current configuration object
config = configuration
# Add to set of loaded plugins before 'name' collapsed in eval.
loaded_plugins << name
# Evaluate init.rb.
silence_warnings { eval(IO.read(init_path), binding, init_path) } if has_init
# Add to set of loaded plugins.
loaded_plugins << name
true
end
end