← Graph

ActiveSupport CurrentAttributes

concept 2 connections

Native Rails mechanism (ActiveSupport::CurrentAttributes) providing a per-request Singleton. Commonly used in multi-tenancy to expose a Current.tenant attribute populated in a Rack middleware or application controller and inherited by downstream code. Backed by thread-local storage.

category
practice
about
ActiveSupport CurrentAttributes concept
Shown as the native Rails mechanism to store the current tenant per request.
uses
ActiveSupport CurrentAttributes concept
Row-level multi-tenancy stores current tenant via a per-request Singleton such as CurrentAttributes.

Provenance

Read by
2 extractions