method
split_constraints
v6.1.3.1 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Mapping
split_constraints(path_params, constraints)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 261
def split_constraints(path_params, constraints)
constraints.partition do |key, requirement|
path_params.include?(key) || key == :controller
end
end