Skip to content
This repository
Browse code

remove unused route reloading code

Since the environment is initialized each time rake is run, routes don't need to be re-loaded. #6461 (comment)
  • Loading branch information...
commit 0460949070d4105810d2c39e6e85fcf93034a861 1 parent 1b07522
Richard Schneeman authored May 30, 2012

Showing 1 changed file with 0 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  railties/lib/rails/tasks/routes.rake
2  railties/lib/rails/tasks/routes.rake
... ...
@@ -1,8 +1,6 @@
1 1
 desc 'Print out all defined routes in match order, with names. Target specific controller with CONTROLLER=x.'
2 2
 task :routes => :environment do
3  
-  Rails.application.reload_routes!
4 3
   all_routes = Rails.application.routes.routes
5  
-
6 4
   require 'rails/application/route_inspector'
7 5
   inspector = Rails::Application::RouteInspector.new
8 6
   puts inspector.format(all_routes, ENV['CONTROLLER']).join "\n"

0 notes on commit 0460949

Please sign in to comment.
Something went wrong with that request. Please try again.