Collections of components

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?

Thank you

___Vogon

On Feb 22, 4:23pm, Vogon P. [email protected] wrote:

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

Frederick C. wrote in post #983171:

On Feb 22, 4:23pm, Vogon P. [email protected] wrote:

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?