Exception: Plutonium::SingularScopeError
- Defined in:
- lib/plutonium.rb
Overview
Raised when a resource registered singular: true has an authorized scope
that resolves to more than one record.
A singular route carries no :id — the scope IS the identification — so the
promise singular: true makes is "exactly one record here". A scope that
returns several silently nests (or shows) an arbitrary row, so it fails
instead. Always a registration/policy mismatch, never user input.