Module: ActiveRecord::ConnectionAdapters::ConnectionPool::ExecutorHooks
- Defined in:
- lib/active_record/connection_adapters/abstract/connection_pool.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.complete(_) ⇒ Object
198 199 200 201 202 203 204 205 206 207 |
# File 'lib/active_record/connection_adapters/abstract/connection_pool.rb', line 198 def complete(_) ActiveRecord::Base.connection_handler.each_connection_pool do |pool| if (connection = pool.active_connection?) transaction = connection.current_transaction if transaction.closed? || !transaction.joinable? pool.release_connection end end end end |
.run ⇒ Object
194 195 196 |
# File 'lib/active_record/connection_adapters/abstract/connection_pool.rb', line 194 def run # noop end |