diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-17 13:39:44 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-17 13:39:55 -0500 |
commit | 092089015b79752c5e9d664b3eeefef9e2223e36 (patch) | |
tree | 69887f3ae3dbc479cb4f2571930f0a46024bbb46 /railties/lib/console_app.rb | |
parent | edc9c226d11e6104d191ceeb6416c7062ceda54a (diff) | |
download | rails-092089015b79752c5e9d664b3eeefef9e2223e36.tar.gz rails-092089015b79752c5e9d664b3eeefef9e2223e36.tar.bz2 rails-092089015b79752c5e9d664b3eeefef9e2223e36.zip |
Extract generic callbacks middleware from dispatcher
Diffstat (limited to 'railties/lib/console_app.rb')
-rw-r--r-- | railties/lib/console_app.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/lib/console_app.rb b/railties/lib/console_app.rb index c944d49205..42bf50e01e 100644 --- a/railties/lib/console_app.rb +++ b/railties/lib/console_app.rb @@ -26,8 +26,7 @@ end #reloads the environment def reload! puts "Reloading..." - dispatcher = ActionController::Dispatcher.new - dispatcher.cleanup_application - dispatcher.reload_application + ActionController::Dispatcher.new + ActionController::Dispatcher.router.reload true end |