method
with_connection
v4.2.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionPool
with_connection()public
If a connection already exists yield it to the block. If no connection exists checkout a connection, yield it to the block, and checkin the connection when finished.