提交 3488ff6f 编写于 作者: J Jeremy Kemper

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
上级 dfda57af
*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 @@ def load_plugin(directory)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册