class ActionDispatch::Journey::Router

def partitioned_routes

def partitioned_routes
  routes.partition { |r|
    r.path.anchored && r.path.requirements_anchored?
  }
end