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:
commit
dab5ffce83
2 files changed
+12
-4
No files matched your search
@@ -8,7 +8,7 @@ module Impressionist
|
||||
DEFAULT_CACHE ||= {
|
||||
:counter_cache => false,
|
||||
:column_name => :impressions_count,
|
||||
:unique => false
|
||||
:unique => :all
|
||||
}
|
||||
|
||||
def impressionist_counter_cache_options
|
||||
|
||||
Reference in new issue
Block a user