Module: Activerecord::Mysql::Reconnect::NewConnectionWithRetry

Included in:
ActiveRecord::ConnectionAdapters::ConnectionPool
Defined in:
lib/activerecord/mysql/reconnect/connection_pool_ext.rb

Instance Method Summary collapse

Instance Method Details

#new_connectionObject



2
3
4
5
6
7
# File 'lib/activerecord/mysql/reconnect/connection_pool_ext.rb', line 2

def new_connection
  Activerecord::Mysql::Reconnect.retryable(
    :proc => proc { super },
    :connection => spec.config,
  )
end