-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please make AASM compatible with JSON::Serializable #7
Comments
I forked the repo and modified it to look like:
.. and added updated
But, this complained that I need to implement
This complained with: See: #8 |
Hey, this is a nice idea. It happens because there is no way to convert a proc to json and back. Thanks for the investigation, I will take a look at what could be done. |
I want to use JSON::Serializable with AASM. In the example below, I get this error:
Error: no overload matches 'AASM::StateMachine#to_json' with type JSON::Builder
.Crystal code (having 'aasm' shard already installed in the Crystal app):
... will display:
The text was updated successfully, but these errors were encountered: