method
matches?
v4.1.8 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Constraints
matches?(env)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 33
def matches?(env)
req = @request.new(env)
@constraints.all? do |constraint|
(constraint.respond_to?(:matches?) && constraint.matches?(req)) ||
(constraint.respond_to?(:call) && constraint.call(*constraint_args(constraint, req)))
end
ensure
req.reset_parameters
end