This project is archived and is in readonly mode.

Changeset [fa2a5ae0339c90d023a7559e681a588219dc3903] by Neeraj Singh

November 24th, 2010 @ 09:08 PM

If a user wants json output then try best to render json output. In such cases prefer kind_of(String) over respond_to?(to_str)

[#5841 state:resolved]

Signed-off-by: José Valim

Committed by Neeraj Singh

  • M actionpack/lib/action_controller/metal/renderers.rb
  • M actionpack/test/controller/mime_responds_test.rb
  • M actionpack/test/lib/controller/fake_models.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>