method

set_state

Importance_0
v4.2.1 - Show latest stable - 0 notes - Class: TransactionState
set_state(state) public

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/connection_adapters/abstract/transaction.rb, line 29
      def set_state(state)
        if !VALID_STATES.include?(state)
          raise ArgumentError, "Invalid transaction state: #{state}"
        end
        @state = state
      end
Register or log in to add new notes.