Skip to content

Commit

Permalink
Flatten ids_or_usernames before iterating
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqui authored and sferik committed Sep 22, 2010
1 parent fb57b27 commit 956fb23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twitter/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 956fb23

Please sign in to comment.