method
active_connection?
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ConnectionPool
active_connection?()public
Is there an open connection that is being used for the current thread?
This method only works for connections that have been obtained through #connection or #with_connection methods, connections obtained through #checkout will not be detected by #active_connection?