Module: Pundit::CacheStore
- Defined in:
- lib/pundit/cache_store.rb,
lib/pundit/cache_store/null_store.rb,
lib/pundit/cache_store/legacy_store.rb
Overview
Namespace for cache store implementations.
Cache stores are used to cache policy lookups, so you get the same policy instance for the same record.
Defined Under Namespace
Classes: LegacyStore, NullStore
Cache Store Interface collapse
-
#fetch(user: , record: , &block) ⇒ Object
Looks up a stored policy or generate a new one.
Instance Method Details
#fetch(user: , record: , &block) ⇒ Object
Note:
This is a method template, but the method does not exist in this module.
Looks up a stored policy or generate a new one.
|
|
# File 'lib/pundit/cache_store.rb', line 12
|