class Pundit::CacheStore::NullStore
A cache store that does not cache anything.
Use ‘NullStore.instance` to get the singleton instance, it is thread-safe.
@see Pundit::Context#initialize @api private
Attributes
@return [NullStore] the singleton instance
Public Instance Methods
Source
# File lib/pundit/cache_store/null_store.rb, line 22 def fetch(*, **) yield end
Always yields, does not cache anything. @yield @return [any] whatever the block returns.