method
with_connection
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionPool
with_connection()public
If a connection obtained through #connection or #with_connection methods already exists yield it to the block. If no such connection exists checkout a connection, yield it to the block, and checkin the connection when finished.