Sha256: deba5839b31e511f95a77fc2a0895058fc5aec04dfd09b0ee6e86ffe11df133c

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

module AxleAttributes::Serializations::Builder
  class SerializeMany < Serialization
    def index_type
      :nested
    end

    def meta_attributes
      if reflection.counter_cache_column
        {
          reflection.counter_cache_column => {type: :integer, index: true,  version: false, editable: false}
        }
      else
        {}
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axle_attributes-1.13.2 lib/axle_attributes/serializations/builder/serialize_many.rb