instance method clear_transaction_record_state

Ruby on Rails edge

Since v3.0.20 Private — implementation detail, not part of the public API

Available in: v3.0.20 v3.1.12 edge

Signature

clear_transaction_record_state()

Clear the new record state and id of a record.

Source
# File activerecord/lib/active_record/transactions.rb, line 486
      def clear_transaction_record_state
        return unless @_start_transaction_state
        @_start_transaction_state[:level] -= 1
        @_start_transaction_state = nil if @_start_transaction_state[:level] < 1
      end

Defined in activerecord/lib/active_record/transactions.rb line 486 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Transactions

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close