Skip to content

Commit 26f8edf

Browse files
authored
Merge pull request rails#51881 from ngan/document-transaction.active_record
Document the transaction.active_record event
2 parents bd04126 + 397585c commit 26f8edf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

guides/source/active_support_instrumentation.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,15 @@ This event is only emitted when [`config.active_record.action_on_strict_loading_
406406
}
407407
```
408408

409+
#### `transaction.active_record`
410+
411+
This event is emmited for every transaction to the database.
412+
413+
| Key | Value |
414+
| -------------------- | ---------------------------------------------------- |
415+
| `:connection` | Connection object |
416+
| `:outcome` | `:commit`, `:rollback`, `:restart`, or `:incomplete` |
417+
409418
### Action Mailer
410419

411420
#### `deliver.action_mailer`

0 commit comments

Comments
 (0)