Displaying 1 result from an estimated 1 matches for "to_mpac".
Did you mean:
to_drac
2013 Feb 01
0
Add a customer renderer but I get missing template
...'world'' })
end
end
And my serializer:
require ''msgpack''
module ActiveModel
module Serializers
module MPAC
extend ActiveSupport::Concern
include ActiveModel::Serialization
included do
extend ActiveModel::Naming
end
def to_mpac(options = nil)
serializable_hash(options).to_msgpack
end
alias_method :to_msgpack, :to_mpac
def from_mpac(msg)
MessagePack.unpack(msg)
end
end
end
end
Anyone has an idea ?
Thanks.
--
You received this message because you are subscribed to the Googl...