method
new_connection
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionPool
new_connection()public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 714
def new_connection # :nodoc:
connection = db_config.new_connection
connection.pool = self
connection
rescue ConnectionNotEstablished => ex
raise ex.set_pool(self)
end