From dd6779946d5e4b060d50688e6e9928ce8afe46c6 Mon Sep 17 00:00:00 2001 From: jgrau Date: Wed, 10 May 2017 22:02:45 +0200 Subject: [PATCH] Default counter_cache to count all impressions --- app/models/impressionist/impressionable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/impressionist/impressionable.rb b/app/models/impressionist/impressionable.rb index 7daa061..7bfd8e8 100644 --- a/app/models/impressionist/impressionable.rb +++ b/app/models/impressionist/impressionable.rb @@ -8,7 +8,7 @@ module Impressionist DEFAULT_CACHE ||= { :counter_cache => false, :column_name => :impressions_count, - :unique => false + :unique => :all } def impressionist_counter_cache_options