You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report, I agree this is an issue. However, I am unclear of the cleanest way to solve it. I'll give it some thought 🤔 . MultiJson was removed just to streamline and remove dependencies. If anyone wants to submit a PR that they think fixes this relatively cleanly, I'd be happy to review, consider, and merge as well.
MultiJson is more downloaded than Rack or Rails (https://rubygems.org/stats) hence there are great chances one already depends to multi_json in its Gemfile,
It is only 1.2k LOC (rabl is 1.7k for instance),
On my computer, repositories have in average 1 dependency that itself depends on MultiJson:
rabl/lib/rabl/configuration.rb
Line 22 in 02b3464
This line causes a lot of trouble for anyone using
Oj
and requiringrabl
after having setOj
themselves:Oj
has its share of responsibility on that, however, IMHO the bug comes from rabl.I'd love to fix it by using MultiJson, yet I came across one of your commits removing it (9bfb1a4).
Another option may be to have a condition in the
format_json
method, but I'm not a big fan..The text was updated successfully, but these errors were encountered: