Sha256: fd93d530d3cf2863c9c207540298d07e423a190386ec8f16f3e1265c0c7d93fd
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
module ActiveData module Model module Extensions module Array extend ActiveSupport::Concern module ClassMethods def active_data_type_cast value case value when ::Array then value when ::String then value.split(',').map(&:strip) else nil end end end end end end end Array.send :include, ActiveData::Model::Extensions::Array
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_data-0.3.0 | lib/active_data/model/extensions/array.rb |
active_data-0.2.0 | lib/active_data/model/extensions/array.rb |