method

all_open_transactions

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