aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-07-08 13:25:45 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-07-08 13:49:15 -0300
commit9c4afcf4cd6290c127374744805dea360bfa21c5 (patch)
tree225db42f93a0eb1a9c7b7c722b8cd2eaf2c8ab79 /railties
parent21c5bc9260a31440cad994f001c7ef6675d44a1d (diff)
downloadrails-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.rb2
-rw-r--r--railties/lib/rails/tasks/routes.rake2
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