Permalink
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 302 Bytes
module ActiveSupport
mattr_accessor :parse_msgpack_times
module MessagePack
def self.decode(data)
data = ::MessagePack.unpack(data)
if ActiveSupport.parse_msgpack_times
ActiveSupport::JSON.send(:convert_dates_from, data)
else
data
end
end
end
end