-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added JSON serializer #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include tests like sobj.responds_to(:to_json)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine if there's a need for it. It's always nice to be able to re-use some existing Rails functionality. Obviously we don't want tests that are redundant with Rails, but perhaps we could just drop two lines into sObject
to indicate that the class responds to as_json
and from_json
.
@jacobdaddario @zeilhofe-xp360 Either of you want to push up those specs & add a |
Added specs and CHANGELOG update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Just added the json serializer to allow
from_json
to be called.