Sha256: fa7d701dc7e7ca7731b969d83c43b7986af18bd7f4ff00c34fc9cc5c03733ba4
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 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 class_attribute :retry_read_only, :instance_accessor => false, :default => true class << self 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-mysql-reconnect-0.3.0 | lib/activerecord/mysql/reconnect/base_ext.rb |