Sha256: feb360ff197745eb944560be37645b7896397ab00409b60eda5be9ab5bb24f00

Contents?: true

Size: 590 Bytes

Versions: 6

Compression:

Stored size: 590 Bytes

Contents

# frozen_string_literal: true

module Mongoid
module Orderable
module Configs
  class GlobalConfig
    attr_accessor :field,
                  :as,
                  :base,
                  :index,
                  :use_transactions,
                  :transaction_max_retries,
                  :lock_collection

    def initialize
      self.field = :position
      self.index = true
      self.base = 1
      self.use_transactions = false
      self.transaction_max_retries = 10
      self.lock_collection = :mongoid_orderable_locks
    end
  end
end
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mongoid_orderable-6.0.5 lib/mongoid/orderable/configs/global_config.rb
mongoid_orderable-6.0.4 lib/mongoid/orderable/configs/global_config.rb
mongoid_orderable-6.0.3 lib/mongoid/orderable/configs/global_config.rb
mongoid_orderable-6.0.2 lib/mongoid/orderable/configs/global_config.rb
mongoid_orderable-6.0.1 lib/mongoid/orderable/configs/global_config.rb
mongoid_orderable-6.0.0 lib/mongoid/orderable/configs/global_config.rb