Sha256: 3f9f4f3b9f07c600cf342dd0587e4e05b93d9a091de6eb101e9a9f138b7b2d38
Contents?: true
Size: 805 Bytes
Versions: 16
Compression:
Stored size: 805 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 class << self def append_features(base) # :nodoc: raise AlreadyIncludedError if base.include?(WithoutPrimaryIndex) super end 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
16 entries across 16 versions & 1 rubygems