The error messages that come from for ex: ensure_state_may_transition_to! are always like
state may not transition from accepted to cancelled
But sometimes you want a nicer error message and/or specific error messages per individual state change.
Just like you can customize error messages on validations in rails it would be nice to have that here as well.
The error messages that come from for ex:
ensure_state_may_transition_to!are always likestate may not transition from accepted to cancelledBut sometimes you want a nicer error message and/or specific error messages per individual state change.
Just like you can customize error messages on validations in rails it would be nice to have that here as well.