Changeset [e396901fcd1ec2890f06f197dc78d63879080103] 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...

Committed by David J. Hamilton

  • 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
New-ticket Create new ticket

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.