Sha256: ccca4708063271877e6a2e98769325e2d3c5dcb2aeec62d1311d2b075614469e
Contents?: true
Size: 378 Bytes
Versions: 1
Compression:
Stored size: 378 Bytes
Contents
### Competition On the model you want to keep score of, usually your User model, put this code: has_score On the model that awards score put this code: keeps_score :if => Proc.new { true }, :on => [:create], :amount => Proc.new { |tc| 1 }, :for => Proc.new {|o| o.user } then goto /competition/leaderboard and viola!
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Competition-0.0.2 | README.md |