Sha256: 4d7f670261bee528d428e42236b641a896f86e322c062275a1bc7f7764574350
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
module ActiveData module Model module Attributes class ReferenceMany < ReferenceOne def read_before_type_cast variable_cache(:value_before_type_cast) do Array.wrap(@value_cache) end end private def type_casted_value variable_cache(:value) do read_before_type_cast.map { |id| typecast(id) } end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_data-1.0.0 | lib/active_data/model/attributes/reference_many.rb |