Method: ActionDispatch::Routing::Mapper::Constraints#serve

Defined in:
actionpack/lib/action_dispatch/routing/mapper.rb

#serve(req) ⇒ Object



59
60
61
62
63
# File 'actionpack/lib/action_dispatch/routing/mapper.rb', line 59

def serve(req)
  return [ 404, { Constants::X_CASCADE => "pass" }, [] ] unless matches?(req)

  @strategy.call @app, req
end