Skip to content

Commit

Permalink
Merge pull request rails#52013 from rails/fxn/edit-transaction.active…
Browse files Browse the repository at this point in the history
…_record

Add usage guidelines to transaction.active_record docs
  • Loading branch information
fxn authored Jun 3, 2024
2 parents 060d6ca + 2a5b4fd commit 3769f1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions guides/source/active_support_instrumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 3769f1e

Please sign in to comment.