On 3 June 2011 17:49, skt <stibre...@gmail.com> wrote:
> Now my task is to take all these records in different arrays and
> extract out an array of unique records from them (unique combination
> of user_id and address_id) as the same record may be present in
> multiple arrays.

(array1 + array2 + array3).uniq

or

[array1, array2, array3].flatten.uniq

-- 
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.

Reply via email to