diff options
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/initializer.rb | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index eae7083fdd..3dff1ce5ba 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -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] diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index d8b951b284..a7230f5cf7 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -310,12 +310,13 @@ 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 |