Sha256: 3f779cbb9a1770c1054ad2822b63efa6da56dd1f73a5bf69167717bda02d9b89
Contents?: true
Size: 391 Bytes
Versions: 1
Compression:
Stored size: 391 Bytes
Contents
module ActiveRecord module Serialization def to_msgpack(options = {}) options = {:out => options} if options.is_a?(String) options[:out] ||= '' options[:out] << MsgpackSerializer.new(self).to_s end class MsgpackSerializer < ActiveRecord::Serialization::Serializer def serialize MessagePack.pack(serializable_record) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
msgpack-rails-0.0.1 | lib/msgpack_rails/2-3/msgpack_serializer.rb |