Sha256: d2206a1dc7ac968360260c67c2cf5b0154af699b78f81b2e48b99d7e0b787084
Contents?: true
Size: 358 Bytes
Versions: 2
Compression:
Stored size: 358 Bytes
Contents
# frozen_string_literal: true module ActiveFields module Casters class DateTimeArrayCaster < DateTimeCaster def serialize(value) return unless value.is_a?(Array) value.map { super(_1) } end def deserialize(value) return unless value.is_a?(Array) value.map { super(_1) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_fields-1.1.0 | lib/active_fields/casters/date_time_array_caster.rb |
active_fields-1.0.0 | lib/active_fields/casters/date_time_array_caster.rb |