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.

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.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/Q0RtMEJCYVAxWEVK.
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.

Reply via email to