You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After transitioning and depending on the record I should run an integration call and depending on this response I need rollback the last transition. Is there an easy way to do that, or should I allow the transition backward and transition it again?
The text was updated successfully, but these errors were encountered:
Destroy the last transition via state_machine.last_transition.destroy; please make sure you have after_destroy :update_most_recent, if: :most_recent? code, which updates the previous most recent transition's row value most_recent to true.
Add a backwards transition to the state machine, which is preferred if you would like to make the logic on rollback.
Hi guys!
After transitioning and depending on the record I should run an integration call and depending on this response I need rollback the last transition. Is there an easy way to do that, or should I allow the transition backward and transition it again?
The text was updated successfully, but these errors were encountered: