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_connection ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/activerecord/mysql/reconnect/connection_pool_ext.rb', line 2 def new_connection if defined?(db_config) Activerecord::Mysql::Reconnect.retryable( :proc => proc { super }, :connection => db_config.configuration_hash ) else Activerecord::Mysql::Reconnect.retryable( :proc => proc { super }, :connection => spec.config, ) end end |