diff options
author | schneems <richard.schneeman@gmail.com> | 2012-05-30 20:38:26 +0200 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2012-05-30 20:38:26 +0200 |
commit | 0460949070d4105810d2c39e6e85fcf93034a861 (patch) | |
tree | fa046b804485f400582fb4a7e1a5a7fd5248ed21 /railties/lib/rails/tasks | |
parent | 1b075220ef59bbee59bb768acbc0d92e59ca38d6 (diff) | |
download | rails-0460949070d4105810d2c39e6e85fcf93034a861.tar.gz rails-0460949070d4105810d2c39e6e85fcf93034a861.tar.bz2 rails-0460949070d4105810d2c39e6e85fcf93034a861.zip |
remove unused route reloading code
Since the environment is initialized each time rake is run, routes don't need to be re-loaded. https://github.com/rails/rails/pull/6461#r869953
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r-- | railties/lib/rails/tasks/routes.rake | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake index 7dc54144da..5778b22f18 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/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" |