method
retrieve_connection
v4.0.2 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionHandler
retrieve_connection(klass)public
Locate the connection of the nearest super class. This can be an active or defined connection: if it is the latter, it will be opened and set as the active connection for the class it was defined for (not necessarily the current class).