aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/formats/json_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activeresource/lib/active_resource/formats/json_format.rb')
-rw-r--r--activeresource/lib/active_resource/formats/json_format.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/activeresource/lib/active_resource/formats/json_format.rb b/activeresource/lib/active_resource/formats/json_format.rb
deleted file mode 100644
index 827d1cc23a..0000000000
--- a/activeresource/lib/active_resource/formats/json_format.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-require 'active_support/json'
-
-module ActiveResource
- module Formats
- module JsonFormat
- extend self
-
- def extension
- "json"
- end
-
- def mime_type
- "application/json"
- end
-
- def encode(hash, options = nil)
- ActiveSupport::JSON.encode(hash, options)
- end
-
- def decode(json)
- Formats.remove_root(ActiveSupport::JSON.decode(json))
- end
- end
- end
-end