Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 0460949070d4105810d2c39e6e85fcf93034a861 1 parent 1b07522
Richard Schneeman schneems authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  railties/lib/rails/tasks/routes.rake
2  railties/lib/rails/tasks/routes.rake
View
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.