1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix Rails.application.routes.router.visualizer for router debugging

fixes error due to Routes#partitioned_routes being removed
This commit is contained in:
Seth Faxon 2016-08-13 17:44:24 -07:00
parent 6107a40c0e
commit cadecac53d

View file

@ -72,7 +72,9 @@ module ActionDispatch
private
def partitioned_routes
routes.partitioned_routes
routes.partition { |r|
r.path.anchored && r.ast.grep(Nodes::Symbol).all? { |n| n.default_regexp? }
}
end
def ast