aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/console_app.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/console_app.rb')
-rw-r--r--railties/lib/console_app.rb5
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