Changeset [e396901fcd1ec2890f06f197dc78d63879080103] by David J. Hamilton
Revision e396901fcd1ec2890f06f197dc78d63879080103,
committed by David J. Hamilton
· May 26th, 2016 @ 03:17 AM
Add :after_commit callbacks to events.
Event-specific :after_commit callbacks are called in the order
that the events
were called. They are called even when the record is manually
persisted. For
the sake of consistency, the same is now true of the state
:after_commit
callback. As in that case, this feature is specific to active
record.
https://github.com/aasm/aasm/commit/e396901fcd1ec2890f06f197dc78d63...
6 changed files
-
M
lib/aasm/base.rb -
M
lib/aasm/instance_base.rb -
M
lib/aasm/persistence/active_record_persistence.rb -
M
spec/models/validator.rb -
M
spec/unit/persistence/active_record_persistence_multiple_spec.rb -
M
spec/unit/persistence/active_record_persistence_spec.rb