This project is archived and is in readonly mode.
Rails Guide Update - ActiveRecord Transaction Callbacks
-
Brian Durand
- Tag changed from rails guides to rails guides, patch
-
Xavier Noria
- Assigned user set to Xavier Noria
- Importance changed from to Low
-
Peter Abrahamsen
This is great, thanks for doing it. I would like to see it explain the behavior around nested transactions. The desired behavior, and I think this is what AR implements is:
- after_commit is triggered after the outermost transaction commits
- after_rollback is triggered after the transaction the record was updated/whatever in is rolled back
This behavior should also be explained in the API docs.
