Sha256: 54b75bd8754ae788be2c8a21a2840d30165e06289a10ae2fb777d1db2c9b36b0
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
module ActiveResource module Formats module MsgpackFormat extend self def extension "mpac" end def mime_type Mime::MPAC.to_s end # Options hash currently serves no function. # TODO: Fix it, duh. Just like the Serializer's issue def encode(hash, options = nil) hash.to_msgpack end def decode(mpac) MessagePack.unpack(mpac) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
msgpack-rails-0.0.1 | lib/msgpack_rails/3/activeresource_formats/msgpack_format.rb |