method
new_connection
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::ConnectionPool
new_connection()
private
Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 675 def new_connection connection = Base.public_send(db_config.adapter_method, db_config.configuration_hash) connection.pool = self connection.check_version connection rescue ConnectionNotEstablished => ex raise ex.set_pool(self) end