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, 3 insertions, 2 deletions
diff --git a/railties/lib/console_app.rb b/railties/lib/console_app.rb
index d7d01d703f..75e6f11ea3 100644
--- a/railties/lib/console_app.rb
+++ b/railties/lib/console_app.rb
@@ -1,3 +1,4 @@
+require 'active_support/all'
require 'active_support/test_case'
require 'action_controller'
@@ -24,7 +25,7 @@ end
#reloads the environment
def reload!
puts "Reloading..."
- Dispatcher.cleanup_application
- Dispatcher.reload_application
+ ActionController::Dispatcher.new
+ ActionController::Dispatcher.router.reload
true
end