Permalink
Browse files

Default leader_at_in options to empty hash

  • Loading branch information...
1 parent 6e90bda commit 9c73b6ef0884d2d6649389b4c94332814030a6b3 @jgadbois jgadbois committed with czarneckid Jun 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/leaderboard.rb
View
4 lib/leaderboard.rb
@@ -572,7 +572,7 @@ def leaders_from_score_range_in(leaderboard_name, minimum_score, maximum_score,
# @param options [Hash] Options to be used when retrieving the leader from the leaderboard.
#
# @return a page of leaders from the named leaderboard.
- def leader_at(position, options={})
+ def leader_at(position, options = {})
leader_at_in(@leaderboard_name, position, options)
end
@@ -583,7 +583,7 @@ def leader_at(position, options={})
# @param options [Hash] Options to be used when retrieving the leader from the named leaderboard.
#
# @return a page of leaders from the named leaderboard.
- def leader_at_in(leaderboard_name, position, options)
+ def leader_at_in(leaderboard_name, position, options = {})
if position <= total_members
leaderboard_options = DEFAULT_LEADERBOARD_REQUEST_OPTIONS.dup
leaderboard_options.merge!(options)

0 comments on commit 9c73b6e

Please sign in to comment.