Sha256: 58dc7bb34d8c5e233b9f71b638f3d402d279947de5594c8d9b9119d631277c29
Contents?: true
Size: 281 Bytes
Versions: 1
Compression:
Stored size: 281 Bytes
Contents
# frozen_string_literal: true module Pundit module CacheStore # @api private class LegacyStore def initialize(hash = {}) @store = hash end def fetch(user:, record:) _ = user @store[record] ||= yield end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pundit-2.4.0 | lib/pundit/cache_store/legacy_store.rb |