Class: ActiveRecord::ConnectionAdapters::Mysql2Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/activerecord/mysql/reconnect/mysql2_adapter_ext.rb

Instance Method Summary collapse

Instance Method Details

#reconnect_with_retry!Object



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

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