Sha256: 711bbc78107ef1cc4037ebe6d86e6790583c626671f06ecddcc80cbf94784037

Contents?: true

Size: 283 Bytes

Versions: 10

Compression:

Stored size: 283 Bytes

Contents

class ActiveRecord::ConnectionAdapters::Mysql2Adapter
  def reconnect_with_retry!
    Activerecord::Mysql::Reconnect.retryable(
      :proc => proc {
        reconnect_without_retry!
      },
      :connection => @connection
    )
  end

  alias_method_chain :reconnect!, :retry
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
activerecord-mysql-reconnect-0.4.0 lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb
activerecord-mysql-reconnect-0.3.9 lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb
activerecord-mysql-reconnect-0.3.7 lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb
activerecord-mysql-reconnect-0.3.6 lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb
activerecord-mysql-reconnect-0.3.5 lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb
activerecord-mysql-reconnect-0.3.4 lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb
activerecord-mysql-reconnect-0.3.3 lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb
activerecord-mysql-reconnect-0.3.2 lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb
activerecord-mysql-reconnect-0.3.1 lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb
activerecord-mysql-reconnect-0.3.0 lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb