diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-05 11:48:50 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-05 11:48:50 -0200 |
commit | f2caf6e433c9fbcaa6fdd615eb33fac730e53bb3 (patch) | |
tree | 7c30e896beced31fdda9fb0f232eb7d7638ee33d | |
parent | 6cc42464fe9f78b8f712a5e6ef495ca5962efd6d (diff) | |
download | rails-f2caf6e433c9fbcaa6fdd615eb33fac730e53bb3.tar.gz rails-f2caf6e433c9fbcaa6fdd615eb33fac730e53bb3.tar.bz2 rails-f2caf6e433c9fbcaa6fdd615eb33fac730e53bb3.zip |
Change Rails Info controller to use the new table routes formatter
-rw-r--r-- | railties/lib/rails/info_controller.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/templates/rails/info/routes.html.erb | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/railties/lib/rails/info_controller.rb b/railties/lib/rails/info_controller.rb index 0b71b0d274..59849f55a9 100644 --- a/railties/lib/rails/info_controller.rb +++ b/railties/lib/rails/info_controller.rb @@ -16,7 +16,7 @@ class Rails::InfoController < ActionController::Base # :nodoc: end def routes - @routes = ActionDispatch::Routing::RoutesInspector.new.collect_routes(_routes.routes) + @routes_inspector = ActionDispatch::Routing::RoutesInspector.new(_routes.routes) end protected diff --git a/railties/lib/rails/templates/rails/info/routes.html.erb b/railties/lib/rails/templates/rails/info/routes.html.erb index 1ea387c63f..30ea086ebb 100644 --- a/railties/lib/rails/templates/rails/info/routes.html.erb +++ b/railties/lib/rails/templates/rails/info/routes.html.erb @@ -6,7 +6,4 @@ Routes match in priority from top to bottom </p> -<%# actionpack/lib/action_dispatch/middleware/templates %> -<%= render layout: "routes/route_wrapper" do %> - <%= render partial: "routes/route", collection: @routes %> -<% end %> +<%= @routes_inspector.format(ActionDispatch::DebugExceptions::TableRoutesFormatter.new(self)) %> |