Commit 9d40646a authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix Counter Cache not being disabled for acts-on-taggable

parent 35ab669a
---
title: Fix counter cache for acts as taggable
merge_request:
author:
......@@ -3,3 +3,7 @@ ActsAsTaggableOn.strict_case_match = true
# tags_counter enables caching count of tags which results in an update whenever a tag is added or removed
# since the count is not used anywhere its better performance wise to disable this cache
ActsAsTaggableOn.tags_counter = false
# validate that counter cache is disabled
raise "Counter cache is not disabled" if
ActsAsTaggableOn::Tagging.reflections["tag"].options[:counter_cache]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment