Flowdock
method

update_attributes_from_transaction_state

Importance_0
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: Core

Method deprecated or moved

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

These similar methods exist in v5.2.3:

update_attributes_from_transaction_state(transaction_state, depth) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.