Exception: TenantKit::NoTenantSet
- Defined in:
- lib/tenant_kit/errors.rb
Overview
Raised when a tenant-scoped model is queried with no current tenant set, while strict mode (+config.require_tenant+) is enabled and execution is not inside a without_tenant block. Signals a would-be cross-tenant read rather than silently returning another tenant's data.