method

increment_open_transactions

rails latest stable - Class: ActiveRecord::Transactions::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

increment_open_transactions(#:nodoc:)
private

No documentation available.

# File activerecord/lib/active_record/transactions.rb, line 86
        def increment_open_transactions #:nodoc:
          open = Thread.current['open_transactions'] ||= 0
          Thread.current['start_db_transaction'] = open.zero?
          Thread.current['open_transactions'] = open + 1
        end