Change Rails Info controller to use the new table routes formatter
This commit is contained in:
parent
6cc42464fe
commit
f2caf6e433
|
@ -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
|
||||
|
|
|
@ -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)) %>
|
||||
|
|
Loading…
Reference in New Issue