I have an aasm event which looks like this:
event :close do
transitions from: :normal, to: :closed
after do
action_1(...)
action_2(...)
end
end
now, I've noticed that when I call close! and there's an error on action2, the event is not saved in the db. I guess that the order of things is 1. transition of the instance 2. after callbacks 3. save
except for catching the error under the 'after' block level, is there a callback that is triggered after the 'save' which I can use ?