diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-11-15 17:52:39 -0500 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-11-24 22:08:36 +0100 |
commit | fa2a5ae0339c90d023a7559e681a588219dc3903 (patch) | |
tree | 0ae3454ed851940c59d239f08f6223d3fffaac59 /activerecord/lib/active_record/associations | |
parent | 66212f69acc3d51af10ff76a18ff4c0bfa305ea5 (diff) | |
download | rails-fa2a5ae0339c90d023a7559e681a588219dc3903.tar.gz rails-fa2a5ae0339c90d023a7559e681a588219dc3903.tar.bz2 rails-fa2a5ae0339c90d023a7559e681a588219dc3903.zip |
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>
Diffstat (limited to 'activerecord/lib/active_record/associations')
0 files changed, 0 insertions, 0 deletions