Permalink
Browse files

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...
1 parent 1b07522 commit 0460949070d4105810d2c39e6e85fcf93034a861 @schneems schneems committed May 30, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 railties/lib/rails/tasks/routes.rake
@@ -1,8 +1,6 @@
desc 'Print out all defined routes in match order, with names. Target specific controller with CONTROLLER=x.'
task :routes => :environment do
- Rails.application.reload_routes!
all_routes = Rails.application.routes.routes
-
require 'rails/application/route_inspector'
inspector = Rails::Application::RouteInspector.new
puts inspector.format(all_routes, ENV['CONTROLLER']).join "\n"

0 comments on commit 0460949

Please sign in to comment.