search for: array_of_pairs_of_us

Displaying 1 result from an estimated 1 matches for "array_of_pairs_of_us".

2008 May 06
1
check_friendship method only returning value of last pair
...dship method, the hash returned should have the same size as the array passed in. But the hash being returned (@friends_hash) always only has size of 1. Is this happening because of the code in check_friendship I commented below? # File lib/facebooker/session.rb, line 218 def check_friendship(array_of_pairs_of_users) uids1 = [] uids2 = [] array_of_pairs_of_users.each do |pair| uids1 = pair.first ############ should this be uids1 << pair.first ############## uids2 = pair.last ############ should this be uids2 << pair.last ############## end post(...