class Pundit::CacheStore::LegacyStore
@api private
Public Class Methods
new(hash = {})
click to toggle source
# File lib/pundit/cache_store/legacy_store.rb, line 7 def initialize(hash = {}) @store = hash end
Public Instance Methods
fetch(user:, record:) { || ... }
click to toggle source
# File lib/pundit/cache_store/legacy_store.rb, line 11 def fetch(user:, record:) _ = user @store[record] ||= yield end