From 956fb23f82cc1f91f6beefb24cf052cf48475a3f Mon Sep 17 00:00:00 2001 From: Jacqui Maher Date: Wed, 14 Jul 2010 05:01:26 +0800 Subject: [PATCH] Flatten ids_or_usernames before iterating --- lib/twitter/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/twitter/base.rb b/lib/twitter/base.rb index 31c756147..870d25177 100644 --- a/lib/twitter/base.rb +++ b/lib/twitter/base.rb @@ -97,7 +97,7 @@ def user(id, query={}) def users(*ids_or_usernames) ids, usernames = [], [] - ids_or_usernames.each do |id_or_username| + ids_or_usernames.flatten.each do |id_or_username| if id_or_username.is_a?(Integer) ids << id_or_username elsif id_or_username.is_a?(String)