diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-07-08 13:25:45 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-07-08 13:49:15 -0300 |
commit | 9c4afcf4cd6290c127374744805dea360bfa21c5 (patch) | |
tree | 225db42f93a0eb1a9c7b7c722b8cd2eaf2c8ab79 /railties | |
parent | 21c5bc9260a31440cad994f001c7ef6675d44a1d (diff) | |
download | rails-9c4afcf4cd6290c127374744805dea360bfa21c5.tar.gz rails-9c4afcf4cd6290c127374744805dea360bfa21c5.tar.bz2 rails-9c4afcf4cd6290c127374744805dea360bfa21c5.zip |
Rename RouteInspector to RoutesInspector
Follow the consistency defined in dbc43bc.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/info_controller.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/tasks/routes.rake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/info_controller.rb b/railties/lib/rails/info_controller.rb index 6276d7c0e4..512803aeac 100644 --- a/railties/lib/rails/info_controller.rb +++ b/railties/lib/rails/info_controller.rb @@ -15,7 +15,7 @@ class Rails::InfoController < ActionController::Base end def routes - inspector = ActionDispatch::Routing::RouteInspector.new + inspector = ActionDispatch::Routing::RoutesInspector.new @info = inspector.format(_routes.routes).join("\n") end diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake index afc4e147e1..95f47566ef 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/railties/lib/rails/tasks/routes.rake @@ -2,6 +2,6 @@ desc 'Print out all defined routes in match order, with names. Target specific c task :routes => :environment do all_routes = Rails.application.routes.routes require 'action_dispatch/routing/inspector' - inspector = ActionDispatch::Routing::RouteInspector.new + inspector = ActionDispatch::Routing::RoutesInspector.new puts inspector.format(all_routes, ENV['CONTROLLER']).join "\n" end |