rabl icon indicating copy to clipboard operation
rabl copied to clipboard

How to explicitly use iso8601 instead of dependency on to_s aliasing

Open caldwecr opened this issue 9 years ago • 2 comments

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 avatar Sep 01 '15 00:09 caldwecr

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

caldwecr avatar Sep 01 '15 00:09 caldwecr

I'm having the same problem

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

HQ063 avatar Sep 11 '15 03:09 HQ063