This project is archived and is in readonly mode.
Changeset [4e2a981bdd162dfd52b15f34b4e45ba87726ff53] by Neeraj Singh
Revision 4e2a981bdd162dfd52b15f34b4e45ba87726ff53,
committed by Neeraj Singh
· November 24th, 2010 @ 09:09 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 jose.valim@gmail.com
https://github.com/rails/rails/commit/4e2a981bdd162dfd52b15f34b4e45...
3 changed files
-
M
actionpack/lib/action_controller/metal/renderers.rb -
M
actionpack/test/controller/mime_responds_test.rb -
M
actionpack/test/lib/controller/fake_models.rb