From 3839dbbf416980fe4846439999ae61d41efc96ca Mon Sep 17 00:00:00 2001 From: Antonio C Nalesso Moreira Date: Thu, 22 Aug 2013 21:42:21 +0100 Subject: [PATCH] FIX #104, wrong documentation --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7540cdf..ae67ca2 100644 --- a/README.md +++ b/README.md @@ -139,19 +139,19 @@ This will automatically increment the `impressions_count` column in the included model. Note: You'll need to add that column to your model. If you'd like specific a different column name, you can: - is_impressionable :counter_cache => { :column_name => :my_column_name } + is_impressionable :counter_cache => true, :column_name => :my_column_name If you'd like to include only unique impressions in your count: # default will be filtered by ip_address - is_impressionable :counter_cache => { :column_name => :my_column_name, :unique => true } + is_impressionable :counter_cache => true, :column_name => :my_column_name, :unique => true If you'd like to specify what sort of unique impression you'd like to save? Fear not, Any option you pass to unique, impressionist_count will use it as its filter to update_counters based on that unique option. # options are any column in the impressions' table. - is_impressionable :counter_cache => { :column_name => :my_column_name, :unique => :request_hash } - is_impressionable :counter_cache => { :column_name => :my_column_name, :unique => :all } + is_impressionable :counter_cache => true, :column_name => :my_column_name, :unique => :request_hash + is_impressionable :counter_cache => true, :column_name => :my_column_name, :unique => :all Adding column to model