Sha256: e2e0d239627f6ecb1786be169401632496755b9011543581dbce0536d8198e74
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
# frozen_string_literal: true module IdentityCache module CacheInvalidation CACHE_KEY_NAMES = [:ids_variable_name, :id_variable_name, :records_variable_name] def reload(*) clear_cached_associations super end private def clear_cached_associations self.class.send(:all_cached_associations).each_value do |association| association.clear(self) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
identity_cache-1.0.1 | lib/identity_cache/cache_invalidation.rb |
identity_cache-1.0.0 | lib/identity_cache/cache_invalidation.rb |