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

Version Path
identity_cache-1.6.3 lib/identity_cache/without_primary_index.rb
identity_cache-1.6.2 lib/identity_cache/without_primary_index.rb
identity_cache-1.6.1 lib/identity_cache/without_primary_index.rb
identity_cache-1.6.0 lib/identity_cache/without_primary_index.rb
identity_cache-1.5.6 lib/identity_cache/without_primary_index.rb
identity_cache-1.5.5 lib/identity_cache/without_primary_index.rb
identity_cache-1.5.4 lib/identity_cache/without_primary_index.rb
identity_cache-1.5.3 lib/identity_cache/without_primary_index.rb
identity_cache-1.5.2 lib/identity_cache/without_primary_index.rb
identity_cache-1.5.1 lib/identity_cache/without_primary_index.rb
identity_cache-1.5.0 lib/identity_cache/without_primary_index.rb
identity_cache-1.4.1 lib/identity_cache/without_primary_index.rb
identity_cache-1.4.0 lib/identity_cache/without_primary_index.rb
identity_cache-1.3.1 lib/identity_cache/without_primary_index.rb
identity_cache-1.3.0 lib/identity_cache/without_primary_index.rb
identity_cache-1.2.0 lib/identity_cache/without_primary_index.rb