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 [2524cf404ce943eca8a5f2d173188fd0cf2ac8b9] by Jakub Suder

Revision 2524cf404ce943eca8a5f2d173188fd0cf2ac8b9, committed by Jakub Suder · September 7th, 2010 @ 07:33 PM

fixed some issues with JSON encoding

  • as_json in ActiveModel should return a hash and handle :only/:except/:methods options
  • Array and Hash should call as_json on their elements
  • json methods should not modify options argument

[#5374 state:committed]

Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/2524cf404ce943eca8a5f2d173188f...

8 changed files

  • M activemodel/lib/active_model/serialization.rb
  • M activemodel/lib/active_model/serializers/json.rb
  • M activemodel/test/cases/serializeration/json_serialization_test.rb
  • M activerecord/lib/active_record/relation.rb
  • M activerecord/lib/active_record/serialization.rb
  • M activerecord/test/cases/json_serialization_test.rb
  • M activesupport/lib/active_support/json/encoding.rb
  • M activesupport/test/json/encoding_test.rb