method
add_to_transaction
rails latest stable - Class:
ActiveRecord::Transactions
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.