README.md in hightop-0.0.1 vs README.md in hightop-0.0.2
- old
+ new
@@ -1,22 +1,22 @@
# Hightop
Super convenient group count
```ruby
-User.top(:gender)
+Visit.top(:browser)
```
instead of
```ruby
-User.group(:gender).where("gender IS NOT NULL").order("count_all DESC, gender").count
+Visit.group(:browser).where("browser IS NOT NULL").order("count_all DESC, browser").count
```
Limit the results
```ruby
-Visit.limit(10).top(:referring_domain)
+Visit.top(:referring_domain, 10)
```
## Installation
Add this line to your application’s Gemfile: