rabl
rabl copied to clipboard
How to explicitly use iso8601 instead of dependency on to_s aliasing
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?
No, none of the fun in #336 really works well for us.
I'm having the same problem
EDIT: Fixed by adding 'oj' to gemfile as says in #610