Sha256: d679f3f2862ae5e58257cea49b4bb15b21e2f59093e904e1305d40a8370f234d
Contents?: true
Size: 715 Bytes
Versions: 3
Compression:
Stored size: 715 Bytes
Contents
class ActiveRecord::Base class_attribute :execution_tries, :instance_accessor => false class_attribute :execution_retry_wait, :instance_accessor => false class_attribute :enable_retry, :instance_accessor => false RETRY_MODES = [:r, :rw, :force] DEFAULT_RETRY_MODE = :r class << self def retry_mode=(v) Activerecord::Mysql::Reconnect.retry_mode = v end def retry_mode Activerecord::Mysql::Reconnect.retry_mode end def without_retry Activerecord::Mysql::Reconnect.without_retry do yield end end def retryable_transaction Activerecord::Mysql::Reconnect.retryable_transaction do yield end end end end
Version data entries
3 entries across 3 versions & 1 rubygems