Thanks Michael and Tim. On Jun 3, 11:19 am, Tim Shaffer <timshaf...@me.com> wrote: > I think the problem with doing that is that the arrays contain instances of > models. > > Sounds like skt wants to consider an instance unique based on only two > attributes of each instance.
That's correct Tim - I am looking to uniq them only on the two id fields > > The best way might just to loop over the arrays and append them to a 4th > array if the 4th array doesn't already contain the item. Might be able to > turn it into a one-liner using inject or map, but that might not be > readable. I will give this a try. Welcome any additional thoughts or suggestions. -S -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.