Pass __FILE__ when evaluating plugins' init.rb. Closes #2817.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper
2005-11-10 16:25:06 +00:00
parent dfda57af85
commit 3488ff6fc6
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
*SVN*
* Pass __FILE__ when evaluating plugins' init.rb. #2817 [james.adam@gmail.com]
* Better svn status matching for generators. #2814 [François Beausoleil <francois.beausoleil@gmail.com>, Blair Zajac <blair@orcaware.com>]
* Don't reload routes until plugins have been loaded so they have a chance to extend the routing capabilities [DHH]

View File

@@ -306,7 +306,7 @@ module Rails
config = configuration
# Evaluate init.rb.
silence_warnings { eval(IO.read(init_path), binding) } if has_init
silence_warnings { eval(IO.read(init_path), binding, init_path) } if has_init
# Add to set of loaded plugins.
loaded_plugins << name