method
call
v3.0.0 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Constraints
call(env)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 23
def call(env)
req = @request.new(env)
@constraints.each { |constraint|
if constraint.respond_to?(:matches?) && !constraint.matches?(req)
return [ 404, {'X-Cascade' => 'pass'}, [] ]
elsif constraint.respond_to?(:call) && !constraint.call(*constraint_args(constraint, req))
return [ 404, {'X-Cascade' => 'pass'}, [] ]
end
}
@app.call(env)
end