Permalink
Browse files

Explain why we're calling an empty callback

  • Loading branch information...
Yehuda Katz Yehuda Katz
Yehuda Katz authored and Yehuda Katz committed Feb 28, 2010
1 parent b51c0d4 commit 6ffc8364dc7cc40312364f2e5978021c3e7d8ab9
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/rails/console/app.rb
@@ -26,6 +26,7 @@ def new_session
# reloads the environment
def reload!(print=true)
puts "Reloading..." if print
+ # This triggers the to_prepare callbacks
ActionDispatch::Callbacks.new(Proc.new {}, false).call({})
true
end

0 comments on commit 6ffc836

Please sign in to comment.