Module: Ruact::ServerFunctions::QueryDispatch::Dispatching
- Defined in:
- lib/ruact/server_functions/query_dispatch.rb
Overview
Instance-level dispatch plumbing shared by every generated controller. Included into the generated subclass, so these definitions override anything the parent chain provides (notably the Ruact::Server gates, when the host's ApplicationController happens to include the mutation concern).
Constant Summary collapse
- KEYWORD_PARAM_TYPES =
The Method#parameters types that mark keyword arguments (D7).
%i[key keyreq].freeze
- PRIMITIVE_PARAM_CLASSES =
Story 9.5 (FR88) — the wire is GET query-string values, so every primitive the client sends arrives as a String (
?limit=5→"5");nilis the only non-String primitive Rack can produce for a scalar param. Arrays (?q[]=) and Hashes (?q[k]=) are the rejected complex shapes. Membership here = "this is a primitive the allowlist accepts". [String, NilClass].freeze