method

all_open_transactions

rails latest stable - Class: ActiveRecord

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

all_open_transactions()
public

No documentation available.

# File activerecord/lib/active_record.rb, line 547
  def self.all_open_transactions # :nodoc:
    open_transactions = []
    Base.connection_handler.each_connection_pool do |pool|
      if active_connection = pool.active_connection
        if active_connection.current_transaction.open? && active_connection.current_transaction.joinable?
          open_transactions << active_connection.current_transaction
        end
      end
    end
    open_transactions
  end