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
193 194 195 196 197 198 199 200 201 202 |
# File 'lib/active_record/connection_adapters/abstract/connection_pool.rb', line 193 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
189 190 191 |
# File 'lib/active_record/connection_adapters/abstract/connection_pool.rb', line 189 def run # noop end |