-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
put back 0.9.x serializer instance #to_hash or #serializable_hash #1321
Comments
Would you mind clarifying which ams version you're targeting? Also, what's your use case? Call serializer.attributes if you want the raw attributes. |
This is an issue on master. I'm using rocket pants which uses that method. It isn't a big issue to change but |
This issue comes up a lot in the 0.10 series. Someone (me? you?) should really add this to common issues and resolutions section in contributing So, tl;dr the serializer has a different interface because it is different. I'm not sure what kind of output you're expecting, but you could monkey patch the serializer with a call to the serializable resource and the attributes adapter. The serializer in the 0.10 series does have an I'll add a comment in that PR. Thanks for the link. |
I'm going to close this, but feel free to continue asking questions, and re-open if you think there's a solution that fits in this lib. |
btw, this is now done in 0.10.0 :) |
instead of
to this
The text was updated successfully, but these errors were encountered: