README.md in hightop-0.0.3 vs README.md in hightop-0.0.4
- old
+ new
@@ -10,16 +10,28 @@
```ruby
Visit.group(:browser).where("browser IS NOT NULL").order("count_all DESC, browser").count
```
+Be sure to [sanitize user input](http://rails-sqli.org/) like you must with `group`.
+
Limit the results
```ruby
Visit.top(:referring_domain, 10)
```
-Be sure to [sanitize user input](http://rails-sqli.org/) like you must with `group`.
+Include nil values
+
+```ruby
+Visit.top(:referring_domain, nil: true)
+```
+
+Works with multiple groups
+
+```ruby
+Visit.top([:city, :referring_domain])
+```
## Installation
Add this line to your application’s Gemfile: