Shopify/shopify_api — pull request #33 by garethson (2012-09-28 21:33:00+00:00)
Title: Fixes ActiveModel json serialization and ActiveResource json decoding post 3.0.17

https://github.com/Shopify/shopify_api/commit/f474f3d7b9059092896b07ef34cdad0c1d062fd0 was overriding the JSON serializer for ActiveModel. This was changing the behaviour of any rails projects using this gem, and trying to use the include_root_in_json globally and properly when rendering json. This PR keeps that logic within our library.

One risk here is that current projects that use this gem may break, so we'll have to make this a major version update (4.0).

Also, our module patch for ActiveResource::Formats::JsonFormat decode is only required for rails pre-3.1. This has been fixed in rails 3.1 an forward. See https://github.com/rails/rails/blob/v3.1.0/activeresource/lib/active_resource/formats/json_format.rb vs https://github.com/rails/rails/blob/v3.0.17/activeresource/lib/active_resource/formats/json_format.rb