diff --git a/README.md b/README.md index a1d1de9..1c322a4 100644 --- a/README.md +++ b/README.md @@ -620,6 +620,17 @@ Since version *3.0.13* AASM supports ActiveRecord transactions. So whenever a tr callback or the state update fails, all changes to any database record are rolled back. Mongodb does not support transactions. +There are currently 3 transactional callbacks that can be handled on the event, and 2 transactional callbacks for all events. + +```ruby + event before_all_transactions + event before_transaction + event aasm_fire_event (within transaction) + event after_commit (if event successful) + event after_transaction + event after_all_transactions +``` + If you want to make sure a depending action happens only after the transaction is committed, use the `after_commit` callback, like this: