class ActiveRecord::ConnectionAdapters::TransactionState
def committed?
def committed? @state == :committed end
def initialize(state = nil)
def initialize(state = nil) @state = state @parent = nil end
def rolledback?
def rolledback? @state == :rolledback end
def set_state(state)
def set_state(state) if !VALID_STATES.include?(state) raise ArgumentError, "Invalid transaction state: #{state}" end @state = state end