# 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