2017-02-23 11:36:23 +00:00
|
|
|
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
|
2017-05-26 09:08:18 +00:00
|
|
|
|
|
|
|
# validate that counter cache is disabled
|
|
|
|
raise "Counter cache is not disabled" if
|
|
|
|
ActsAsTaggableOn::Tagging.reflections["tag"].options[:counter_cache]
|