提交 3cf2c63e 编写于 作者: J Jeremy Kemper

Console reload! runs to_prepare callbacks also. Closes #8393.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 af98d883
*SVN*
* Console reload! runs to_prepare callbacks also. #8393 [f.svehla]
* Generated migrations include timestamps by default. #8501 [Shane Vitarana]
* Drop Action Web Service from rails:freeze:edge. [Jeremy Kemper]
......
......@@ -23,5 +23,7 @@ def new_session
#reloads the environment
def reload!
puts "Reloading..."
Dispatcher.reset_application!
returning Dispatcher.reset_application! do
Dispatcher.send :run_preparation_callbacks
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册