update notes for where_properties (#231)
mreigen
committed Oct 22, 2016
commit f6eb677856027c6a2609b1e16fd1153a2fe5e3a8
Showing 1
changed file with
10 additions
and 1 deletions
README.md
+10
-1
| @@ | @@ -499,7 +499,16 @@ With ActiveRecord, use: |
| Ahoy::Event.where(name: "Viewed product").where_properties(product_id: 123).count | |
| ``` | |
| - | **Note:** If you get a `NoMethodError`, upgrade Ahoy and add `include Ahoy::Properties` to your model. |
| + | **Note:** If you get a `NoMethodError`, upgrade Ahoy and add `include Ahoy::Properties` to the Ahoy::Event class: |
| + | |
| + | ```ruby |
| + | module Ahoy |
| + | class Event < ActiveRecord::Base |
| + | include Ahoy::Properties |
| + | ... |
| + | end |
| + | end |
| + | ``` |
| ## Native Apps | |