Has ActiveRecord a macro style method for mapping collections of value
objects? something like composed_of (used for one value object) but for
a collection of value object.
A second question:
Does ActiveRecord use .eql? to check instances for modifications?
Has ActiveRecord a macro style method for mapping collections of value
objects? something like composed_of (used for one value object) but for
a collection of value object.
A second question:
Does ActiveRecord use .eql? to check instances for modifications?
No. equality in activerecord means equality of primary key.
Has ActiveRecord a macro style method for mapping collections of value
objects? something like composed_of (used for one value object) but for
a collection of value object.
A second question:
Does ActiveRecord use .eql? to check instances for modifications?
No. equality in activerecord means equality of primary key.
Fred
Thank you Fred, any ideas for mapping collections of components without
losing the meaning of this kind of association?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.