-
Notifications
You must be signed in to change notification settings - Fork 51
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
Corrected Misspelling - Add .to_json
to explicit conversions
#23
Conversation
I'm iffy on this. I don't think of Talk me into it? |
Ok, I understand why you may be iffy on this one. I guess one gets used to thinking of |
I won't weigh in on whether it should be included simply because of Rails, but I do have a couple of suggestions:
While Rails will call It might not be a common thing, but you might have someone expect
In this case, they'd end up with an empty object instead of "null".
|
Ok, so I will weigh in on it. I think Rails apps would represent a significant chunk of the usage for gems like this, so it'd be nice to support such common conversions. I'd rather see it outside of the main code though, so it doesn't get littered for people who aren't using it in such a manner. If there were a lot of Rails differences to support, maybe a naught-rails gem would be called for, but for a single common conversion, that might be overkill. 😄 |
Thanks for the feedback. I agree that Rails apps will most likely represent a significant chunk of usage, will make some changes and come back. |
No description provided.