diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-26 19:32:23 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-26 19:55:39 -0700 |
commit | c1d73270717f30498f8f4d55d6695509107c2834 (patch) | |
tree | 88529812e5afe3cb15e60da2bc3fa67d3f4b09e4 /actionpack/test/abstract/callbacks_test.rb | |
parent | 43e2fd93b4fa92ca23d8bc8e68e1bf5a94038461 (diff) | |
download | rails-c1d73270717f30498f8f4d55d6695509107c2834.tar.gz rails-c1d73270717f30498f8f4d55d6695509107c2834.tar.bz2 rails-c1d73270717f30498f8f4d55d6695509107c2834.zip |
JSON: encode objects that don't have a native JSON representation using to_hash, if available, instead of instance_values (the old fallback) or to_s (other encoders' default). Encode BigDecimal and Regexp encode as strings to conform with other encoders. Try to transcode non-UTF-8 strings.
Diffstat (limited to 'actionpack/test/abstract/callbacks_test.rb')
0 files changed, 0 insertions, 0 deletions