Changeset [96b20e685f8b09b731a77906e40f68cdd97c7b5f] by Scott Jacobsen
November 18th, 2015 @ 02:39 PM
Clarify docs around the after_commit callback
It appears after_commit
callbacks only fire when
using the bang methods. I understand the non-bang methods do not
save the model, but I expected the callbacks to fire when the model
is actually saved.
item.approve
item.save!
But this does fire the callback:
item.approve!
https://github.com/aasm/aasm/commit/96b20e685f8b09b731a77906e40f68c...
Committed by Scott Jacobsen
- M README.md
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Library for adding state machines to Ruby classes. Includes persistence layers for things like ActiveRecord. Formerly known as acts_as_state_machine.