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
where STATUSES is the array of possible valid states
When the object is first created the state is a symbol so validation passes. Then when the saved and retrieved back again state is a string so it doesn't validate anymore.
I would be good to have full support for using strings as well as symbols.
The text was updated successfully, but these errors were encountered:
Hmm... might be a neat idea to build validation into the workflow (active record adapter) (since that information is already available in the workflow_spec.
If I try to use strings instead of symbols for defining the events Workflow doesn't work properly.
e.g.
Then
always returns false where it should return true. When using symbols this works fine.
However using string is useful for validation:
where STATUSES is the array of possible valid states
When the object is first created the state is a symbol so validation passes. Then when the saved and retrieved back again state is a string so it doesn't validate anymore.
I would be good to have full support for using strings as well as symbols.
The text was updated successfully, but these errors were encountered: