Sha256: 795c4213c55718ac450284676dafba542c27c2ba9c2b0607cf1004cd8b96d755
Contents?: true
Size: 773 Bytes
Versions: 3
Compression:
Stored size: 773 Bytes
Contents
# frozen_string_literal: true module IdentityCache module WithoutPrimaryIndex extend ActiveSupport::Concern include ArTransactionChanges include IdentityCache::BelongsToCaching include IdentityCache::CacheKeyGeneration include IdentityCache::ConfigurationDSL include IdentityCache::QueryAPI include IdentityCache::CacheInvalidation include IdentityCache::ShouldUseCache include ParentModelExpiration def self.append_features(base) #:nodoc: raise AlreadyIncludedError if base.include?(WithoutPrimaryIndex) super end included do class_attribute(:cached_model) self.cached_model = self end module ClassMethods def primary_cache_index_enabled false end end end end
Version data entries
3 entries across 3 versions & 1 rubygems