rails/activemodel/lib/active_model/serializers
Jakub Suder 2524cf404c 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>
2010-09-07 11:33:10 -07:00
..
json.rb fixed some issues with JSON encoding 2010-09-07 11:33:10 -07:00
xml.rb ActiveModel#to_xml fix (renamed parameter). 2010-09-02 12:55:45 +02:00