Sha256: 073d31a74baaf320b28936d16813b8d85254bd6f482921d78d1e0b95cbca0c0d

Contents?: true

Size: 297 Bytes

Versions: 6

Compression:

Stored size: 297 Bytes

Contents

class ActiveRecord::ConnectionAdapters::ConnectionPool
  def new_connection_with_retry
    Activerecord::Mysql::Reconnect.retryable(
      :proc => proc {
        new_connection_without_retry
      },
      :connection => spec.config,
    )
  end

  alias_method_chain :new_connection, :retry
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
activerecord-mysql-reconnect-0.4.0 lib/activerecord/mysql/reconnect/connection_pool_ext.rb
activerecord-mysql-reconnect-0.3.9 lib/activerecord/mysql/reconnect/connection_pool_ext.rb
activerecord-mysql-reconnect-0.3.7 lib/activerecord/mysql/reconnect/connection_pool_ext.rb
activerecord-mysql-reconnect-0.3.6 lib/activerecord/mysql/reconnect/connection_pool_ext.rb
activerecord-mysql-reconnect-0.3.5 lib/activerecord/mysql/reconnect/connection_pool_ext.rb
activerecord-mysql-reconnect-0.3.4 lib/activerecord/mysql/reconnect/connection_pool_ext.rb