instance method update_attributes_from_transaction_state

Ruby on Rails 4.2.9

Since v4.0.13 Last seen in v4.2.9 Private

Available in: v4.0.13 v4.1.16 v4.2.9

Signature

update_attributes_from_transaction_state(transaction_state, depth)

No documentation comment.

Parameters

transaction_state req
depth req
Source
# File activerecord/lib/active_record/core.rb, line 519
    def update_attributes_from_transaction_state(transaction_state, depth)
      @reflects_state = [false] if depth == 0

      if transaction_state && transaction_state.finalized? && !has_transactional_callbacks?
        unless @reflects_state[depth]
          restore_transaction_record_state if transaction_state.rolledback?
          clear_transaction_record_state
          @reflects_state[depth] = true
        end

        if transaction_state.parent && !@reflects_state[depth+1]
          update_attributes_from_transaction_state(transaction_state.parent, depth+1)
        end
      end
    end

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

Defined in ActiveRecord::Core

Type at least 2 characters to search.

↑↓ navigate · open · esc close