Sha256: 7007cea56678976f35eb1f601993a990c5d0cbecaf4cedb7681bccc36d6395d5
Contents?: true
Size: 396 Bytes
Versions: 17
Compression:
Stored size: 396 Bytes
Contents
# frozen_string_literal: true module ActiveJob module Serializers class TimeWithZoneSerializer < ObjectSerializer # :nodoc: def serialize(time) super("value" => time.iso8601) end def deserialize(hash) Time.iso8601(hash["value"]).in_time_zone end private def klass ActiveSupport::TimeWithZone end end end end
Version data entries
17 entries across 17 versions & 4 rubygems