Updated readme.

This commit is contained in:
mio 2011-12-13 10:46:43 +01:00
parent d6d5bf3dc7
commit f396b056f5
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ If you'd like to include only unique impressions in your count:
What if I only want to record unique impressions? What if I only want to record unique impressions?
------------------------------------------------- -------------------------------------------------
Maybe you only care about unique impressions and would like to eliminate unnecessary database calls. You can specify conditions for recording impressions in your controller: Maybe you only care about unique impressions and would like to avoid unnecessary database records. You can specify conditions for recording impressions in your controller:
# only record impression if the request has a unique combination of type, id, and session # only record impression if the request has a unique combination of type, id, and session
impressionist :unique => [:impressionable_type, :impressionable_id, :session_hash] impressionist :unique => [:impressionable_type, :impressionable_id, :session_hash]