From f2c10f27565318b5efbdc57fb608b2afe9ae445d Mon Sep 17 00:00:00 2001 From: Cody Fauser Date: Tue, 7 Oct 2008 12:05:41 -0400 Subject: Add ActiveResource::Base#to_xml and ActiveResource::Base#to_json methods. [#1011 state:resolved] Signed-off-by: Pratik Naik --- activeresource/lib/active_resource/formats/json_format.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activeresource/lib/active_resource/formats/json_format.rb') 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) -- cgit v1.2.3