Displaying 1 result from an estimated 1 matches for "from_mpac".
2013 Feb 01
0
Add a customer renderer but I get missing template
...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 Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ru...