Merge pull request #52013 from rails/fxn/edit-transaction.active_record

Add usage guidelines to transaction.active_record docs
This commit is contained in:
Xavier Noria 2024-06-03 23:23:22 +02:00 committed by GitHub
commit 3769f1eee6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -420,6 +420,11 @@ This event is emmited for every transaction to the database.
| `:outcome` | `:commit`, `:rollback`, `:restart`, or `:incomplete` |
| `:connection` | Connection object |
Please note that at this point the transaction has been finished, and its state
is in the `:outcome` key. In practice, you cannot do much with the transaction
object, but it may still be helpful for tracing database activity. For example,
by tracking `transaction.uuid`.
### Action Mailer
#### `deliver.action_mailer`