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
Before I consider adding a patch to the library, I was curious if we have ever considered having an instance method like current_state that would be previous_state?
The text was updated successfully, but these errors were encountered:
Nope, did not consider yet.
If you need it for your use case, you could use the on_transition hook https://github.com/geekq/workflow#on_transition to save the previous state to some instance variable.
Before I consider adding a patch to the library, I was curious if we have ever considered having an instance method like
current_state
that would beprevious_state
?The text was updated successfully, but these errors were encountered: