Skip to Content Skip to Search
Methods
C
M
R

Instance Public methods

commit()

# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 218
def commit
  connection.commit_db_transaction if materialized?
  @state.full_commit!
end

materialize!()

# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 203
def materialize!
  if isolation_level
    connection.begin_isolated_db_transaction(isolation_level)
  else
    connection.begin_db_transaction
  end

  super
end

rollback()

# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 213
def rollback
  connection.rollback_db_transaction if materialized?
  @state.full_rollback!
end