Let's say we have a properly defined state machine that operates on the attribute state of a Rails model. Is there a way to add a new callback like after_transition to: :some_state, do: :my_callback but from outside the class and without modifying the original state machine definition?
Let's say we have a properly defined state machine that operates on the attribute
state
of a Rails model. Is there a way to add a new callback likeafter_transition to: :some_state, do: :my_callback
but from outside the class and without modifying the original state machine definition?