method
constraints
v5.2.3 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Mapping
constraints(options, path_params)private
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 369
def constraints(options, path_params)
options.group_by do |key, option|
if Regexp === option
:constraints
else
if path_params.include?(key)
:path_params
else
:required_defaults
end
end
end
end