Skip to content
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

How to explicitly use iso8601 instead of dependency on to_s aliasing #641

Open
caldwecr opened this issue Sep 1, 2015 · 2 comments
Open

Comments

@caldwecr
Copy link
Contributor

caldwecr commented Sep 1, 2015

Running into an issue where the to_s override that occurs in Rabl to the Time class is being circumvented by another library.

I'd really like to, via configuration or other method, just specify that when encoding any Time, Date, or DateTime to always use #iso8601 and not #to_s

If I'm reading the code wrong and it's actually using to_json or as_json then same question, but replace to_s with to_json.

Suggestions?

@caldwecr
Copy link
Contributor Author

caldwecr commented Sep 1, 2015

No, none of the fun in #336 really works well for us.

@HQ063
Copy link

HQ063 commented Sep 11, 2015

I'm having the same problem

EDIT: Fixed by adding 'oj' to gemfile as says in #610

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants