Permalink
Browse files

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
  • Loading branch information...
1 parent af98d88 commit 3cf2c63eee8c8de57b4856c13008979fee2778bf @jeremy jeremy committed May 29, 2007
Showing with 5 additions and 1 deletion.
  1. +2 −0 railties/CHANGELOG
  2. +3 −1 railties/lib/console_app.rb
View
@@ -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 @@ 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

0 comments on commit 3cf2c63

Please sign in to comment.