README.md in rails_state_machine-1.0.0 vs README.md in rails_state_machine-1.1.0
- old
+ new
@@ -109,10 +109,11 @@
Here is a list with all the available callbacks, listed in the same order in which they will get called during the respective operations. The callbacks are chained with the existing active record callbacks on the model.
* `before_validation`
* `before_save`
* `after_save`
+* `after_commit`
Example:
```ruby
event :request_review do
@@ -126,9 +127,13 @@
# this callback is chained with existing `before_save` callbacks of the model
end
after_save do
# this callback is chained with existing `after_save` callbacks of the model
+ end
+
+ after_commit do
+ # this callback is chained with existing `after_commit` callbacks of the model
end
end
```
## Development