Sha256: 4399c16d034cf1503c24dea688a015ec94e99fabbb645ee6ca26833bd00dbf83
Contents?: true
Size: 356 Bytes
Versions: 3
Compression:
Stored size: 356 Bytes
Contents
# frozen_string_literal: true module ActiveFields module Casters class IntegerArrayCaster < IntegerCaster 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