Methods
Instance Public methods
commit()
📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 218
def commit
connection.commit_db_transaction if materialized?
@state.full_commit!
end
🔎 See on GitHub
materialize!()
📝 Source code
# 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
🔎 See on GitHub
rollback()
📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 213
def rollback
connection.rollback_db_transaction if materialized?
@state.full_rollback!
end
🔎 See on GitHub