method

add_to_transaction

add_to_transaction(ensure_finalize = true)
private

Add the record to the current transaction so that the #after_rollback and #after_commit callbacks can be called.