Sha256: bef0b7f3b0881dc769e66b198aded4409b9a93f6702a90b0659a8cabcc63abe9
Contents?: true
Size: 367 Bytes
Versions: 1
Compression:
Stored size: 367 Bytes
Contents
require "active_support/json" require "msgpack_rails/activesupport/core_ext/object/to_msgpack" module ActiveSupport module MessagePack def self.encode(value, options = {}) out = options.fetch(:out, nil) ::MessagePack.pack(value.as_msgpack(options), out) end end end class Object def as_msgpack(options = {}) as_json(options) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
msgpack_rails-0.0.1 | lib/msgpack_rails/activesupport/message_pack/encoding.rb |