README.md in ohm-tallyable-0.1.4 vs README.md in ohm-tallyable-0.1.5
- old
+ new
@@ -8,12 +8,13 @@
Setup
-----
-1. Include the `Tallyable` module in your model:
+1. Include the `Callbacks` and `Tallyable` modules in your model:
+ include Ohm::Callbacks
include Ohm::Tallyable
2. Add a tally to your model with the following line:
tally :category
@@ -23,10 +24,11 @@
Usage
-----
To query the tallies, use the `leaderboard` class method.
- Post.leaderboard(:category)
+ >> Post.leaderboard(:category)
+ => [["Personal", 2], ["Work", 1]]
Advanced Usage
--------------