Sha256: 1597b1c8c00158ad8e21db696562febf6f1802986932e537ac370edb7d5ec5aa

Contents?: true

Size: 375 Bytes

Versions: 61

Compression:

Stored size: 375 Bytes

Contents

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)
        ActiveSupport::JSON.decode(json)
      end
    end
  end
end

Version data entries

61 entries across 60 versions & 11 rubygems

Version Path
activeresource-2.3.18 lib/active_resource/formats/json_format.rb
activeresource_csi-2.3.5.p8 lib/active_resource/formats/json_format.rb
activeresource-2.3.17 lib/active_resource/formats/json_format.rb
activeresource_csi-2.3.5.p7 lib/active_resource/formats/json_format.rb
activeresource_csi-2.3.5.20130130071128 lib/active_resource/formats/json_format.rb
activeresource_csi-2.3.5.p6 lib/active_resource/formats/json_format.rb
activeresource-2.3.16 lib/active_resource/formats/json_format.rb
activeresource-2.3.15 lib/active_resource/formats/json_format.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/activeresource-2.3.14/lib/active_resource/formats/json_format.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/activeresource-2.3.12/lib/active_resource/formats/json_format.rb
activeresource-2.3.14 lib/active_resource/formats/json_format.rb
kajam-1.0.3.rc2 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
activeresource-2.3.12 lib/active_resource/formats/json_format.rb
radiant-1.0.0.rc2 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiant-1.0.0.rc1 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
webroar-0.5.0 src/admin_panel/vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
activeresource-2.3.11 lib/active_resource/formats/json_format.rb
radiantcms-couchrest_model-0.2.4 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiantcms-couchrest_model-0.2.2 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiantcms-couchrest_model-0.2.1 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb