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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 22, 4:23 pm, Vogon Primo <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 > > ___Vogon > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung wrote in post #983171:> On Feb 22, 4:23pm, Vogon Primo <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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. > > FredThank you Fred, any ideas for mapping collections of components without losing the meaning of this kind of association? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.