rails/rails — pull request #4874 by johnbintz (2012-02-03 22:16:27+00:00)
Title: Ensure ActiveResource serialization obeys ActiveResource::Base.include_root_in_json

The root element in JSON serialization in Rails 3.2.1 is always present, regardless of the setting of `ActiveResource::Base.include_root_in_json`. This fix makes `ActiveResource::Base#to_json` obey the setting, and includes a test to make sure the setting works.