method
connection
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::ConnectionHandling
connection()public
Returns the connection currently associated with the class. This can also be used to “borrow” the connection to do database work unrelated to any of the specific Active Records.