method
partition_route
v5.0.0.1 -
Show latest stable
- Class:
ActionDispatch::Journey::Routes
partition_route(route)public
No documentation available.
# File actionpack/lib/action_dispatch/journey/routes.rb, line 41
def partition_route(route)
if route.path.anchored && route.ast.grep(Nodes::Symbol).all?(&:default_regexp?)
anchored_routes << route
else
custom_routes << route
end
end