mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
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:
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user