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
It seems that if the conditional requirement for a state transition is false, the error message for fire_events! is misleading.
pry(main)> acc.fire_events!(:set_non_paying)
StateMachine::InvalidParallelTransition: Cannot run events in parallel: set_non_paying
pry(main)> z.set_non_paying!
StateMachine::InvalidTransition: Cannot transition status via :set_non_paying from :trial (Reason(s): Status cannot transition via "set non paying")
The text was updated successfully, but these errors were encountered:
It seems that if the conditional requirement for a state transition is false, the error message for fire_events! is misleading.
pry(main)> acc.fire_events!(:set_non_paying)
StateMachine::InvalidParallelTransition: Cannot run events in parallel: set_non_paying
pry(main)> z.set_non_paying!
StateMachine::InvalidTransition: Cannot transition status via :set_non_paying from :trial (Reason(s): Status cannot transition via "set non paying")
The text was updated successfully, but these errors were encountered: