Sha256: 6822ccd169990fe960a6cb5ebe0f3e25c6635f4258bd2c256d5d9a8f0a5cdfc0

Contents?: true

Size: 354 Bytes

Versions: 29

Compression:

Stored size: 354 Bytes

Contents

module ActiveResource
  module Formats
    module JsonFormat
      extend self
      
      def extension
        "json"
      end
      
      def mime_type
        "application/json"
      end
      
      def encode(hash)
        hash.to_json
      end
      
      def decode(json)
        ActiveSupport::JSON.decode(json)
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 6 rubygems

Version Path
radiant-0.7.2 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
vibes-bj-1.2.2 spec/rails_root/vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
activeresource-2.0.2 lib/active_resource/formats/json_format.rb
activeresource-2.0.4 lib/active_resource/formats/json_format.rb
activeresource-2.0.1 lib/active_resource/formats/json_format.rb
activeresource-2.1.2 lib/active_resource/formats/json_format.rb
activeresource-2.0.5 lib/active_resource/formats/json_format.rb
activeresource-2.1.0 lib/active_resource/formats/json_format.rb
antfarm-0.3.0 rails/vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
antfarm-0.4.0 rails/vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiant-0.6.5.1 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiant-0.6.5 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiant-0.6.7 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiant-0.6.6 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiant-0.6.9 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiant-0.6.8 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiant-0.7.0 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
radiant-0.7.1 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb
spree-0.0.9 vendor/rails/activeresource/lib/active_resource/formats/json_format.rb