Sha256: 9565c6d4525d25a83307906138ff00159a7f09c1f2394878b1f5e9cf50a42b5d
Contents?: true
Size: 350 Bytes
Versions: 3
Compression:
Stored size: 350 Bytes
Contents
# frozen_string_literal: true module ActiveFields module Casters class TextArrayCaster < TextCaster 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
3 entries across 3 versions & 1 rubygems