Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [c1d73270717f30498f8f4d55d6695509107c2834] by Jeremy Kemper

Revision c1d73270717f30498f8f4d55d6695509107c2834, committed by Jeremy Kemper · April 27th, 2010 @ 03:55 AM

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.
http://github.com/rails/rails/commit/c1d73270717f30498f8f4d55d66955...

3 changed files

  • M activesupport/CHANGELOG
  • M activesupport/lib/active_support/json/encoding.rb
  • M activesupport/test/json/encoding_test.rb