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

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 Cheung wrote in post #983171: