method
split_constraints
rails 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 237
def split_constraints(path_params, constraints)
constraints.partition do |key, requirement|
path_params.include?(key) || key == :controller
end
end