Re: Rails 2.3-stable killed to_json

Jeremy Kemper
Thu, 28 May 2009 16:20:46 -0000

On Thu, May 28, 2009 at 4:13 AM, Mislav Marohnić
<mislav.marohnic@gmail.com> wrote:
> I bumped Rails 2.3-stable branch in our app today and deployed, thinking
I''m
> being a good developer by getting all the bugfixes this way.
> What I actually did is broke many aspects of our app because all `to_json`
> calls now return "{}" (hardcoded).
> Both ways to solve this require changing my code:
>
> follow the instructions in the commit; or
> change all `to_json` calls to `rails_to_json`.
>
> Now, I''ve been following the talk about ActiveSupport
incompatibility with
> the JSON gem. I''m not interesting in raising those issues again. I
want to
> know why was such thing backported -- without warning -- breaking backwards
> compatibility?

to_json should still work as expected -- this is a bug.

jeremy