method
matches?
v5.2.3 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Constraints
matches?(req)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 38
def matches?(req)
@constraints.all? do |constraint|
(constraint.respond_to?(:matches?) && constraint.matches?(req)) ||
(constraint.respond_to?(:call) && constraint.call(*constraint_args(constraint, req)))
end
end