Merge pull request #243 from charlotte-ruby/fix-counter-cache-not-updating

Fix counter cache not updating when no `unique` option is set
This commit is contained in:
Jonas Grau authored and GitHub committed 2017-05-24 21:50:37 +02:00
commit dab5ffce83
2 files changed
+12 -4

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ module Impressionist
DEFAULT_CACHE ||= {
:counter_cache => false,
:column_name => :impressions_count,
:unique => false
:unique => :all
}
def impressionist_counter_cache_options