Sha256: e292600b3e05837663e3d45d67754072e9dd4e782829d11c718016b8b324d2a3

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
msgpack_rails-0.4.3 lib/msgpack_rails/activesupport/message_pack/decoding.rb
msgpack_rails-0.4.2 lib/msgpack_rails/activesupport/message_pack/decoding.rb
msgpack_rails-0.4.1 lib/msgpack_rails/activesupport/message_pack/decoding.rb
msgpack_rails-0.4.0 lib/msgpack_rails/activesupport/message_pack/decoding.rb
msgpack_rails-0.3.0 lib/msgpack_rails/activesupport/message_pack/decoding.rb
msgpack_rails-0.1.0 lib/msgpack_rails/activesupport/message_pack/decoding.rb