mirror of
https://github.com/github/rails.git
synced 2026-01-30 16:58:15 -05:00
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
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*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 @@ end
|
||||
#reloads the environment
|
||||
def reload!
|
||||
puts "Reloading..."
|
||||
Dispatcher.reset_application!
|
||||
returning Dispatcher.reset_application! do
|
||||
Dispatcher.send :run_preparation_callbacks
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user