diff options
author | Cody Fauser <codyfauser@gmail.com> | 2008-10-07 12:05:41 -0400 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-10-07 17:48:02 +0100 |
commit | f2c10f27565318b5efbdc57fb608b2afe9ae445d (patch) | |
tree | 584cc6362342480d2c6b576d86bc9a539f8d3043 /activeresource/lib/active_resource/formats | |
parent | dce6ade4cdc2833b53bd600ef10f9bce83c7102d (diff) | |
download | rails-f2c10f27565318b5efbdc57fb608b2afe9ae445d.tar.gz rails-f2c10f27565318b5efbdc57fb608b2afe9ae445d.tar.bz2 rails-f2c10f27565318b5efbdc57fb608b2afe9ae445d.zip |
Add ActiveResource::Base#to_xml and ActiveResource::Base#to_json methods. [#1011 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activeresource/lib/active_resource/formats')
-rw-r--r-- | activeresource/lib/active_resource/formats/json_format.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/formats/json_format.rb b/activeresource/lib/active_resource/formats/json_format.rb index 9e269d4ded..1d88fc5f16 100644 --- a/activeresource/lib/active_resource/formats/json_format.rb +++ b/activeresource/lib/active_resource/formats/json_format.rb @@ -12,7 +12,7 @@ module ActiveResource end def encode(hash, options={}) - hash.to_json + hash.to_json(options) end def decode(json) |