method
connection
v3.2.13 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionPool
connection()public
Retrieve the connection associated with the current thread, or call #checkout to obtain one if necessary.
#connection can be called any number of times; the connection is held in a hash keyed by the thread id.