Skip to content

Commit

Permalink
Flatten the array in-place
Browse files Browse the repository at this point in the history
  • Loading branch information
David Czarnecki committed Mar 15, 2012
1 parent 83b50ae commit 0bb9d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/leaderboard.rb
Expand Up @@ -116,7 +116,7 @@ def rank_members(*members_and_scores)
# @param members_and_scores [Splat or Array] Variable list of members and scores
def rank_members_in(leaderboard_name, *members_and_scores)
if members_and_scores.is_a?(Array)
members_and_scores = members_and_scores.flatten
members_and_scores.flatten!
end

@redis_connection.multi do |transaction|
Expand Down

0 comments on commit 0bb9d6e

Please sign in to comment.