Browse files

Added NOTE on using lambda for the rank_conditional

  • Loading branch information...
1 parent d8977ec commit 0715e798fac32764f2a41bad7636d14c450bf8a2 @czarneckid czarneckid committed Nov 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.markdown
View
2 README.markdown
@@ -256,6 +256,8 @@ highscore_lb.score_for('david')
=> 1338.0
```
+NOTE: Use a lambda and not a proc, otherwise you will get a `LocalJumpError` as a return statement in the proc will return from the method enclosing the proc.
+
### Ranking multiple members in a leaderboard at once
Insert multiple data items for members and their associated scores:

0 comments on commit 0715e79

Please sign in to comment.