Sha256: c0b88afb1f11f0c2e4d4aa88b20cbdfc4d6d57ea7bbdf4e27cda578ac09c6b21
Contents?: true
Size: 649 Bytes
Versions: 10
Compression:
Stored size: 649 Bytes
Contents
module CounterCulture module SkipUpdates private # called by after_create callback def _update_counts_after_create unless Array(Thread.current[:skip_counter_culture_updates]).include?(self.class) super end end # called by after_destroy callback def _update_counts_after_destroy unless Array(Thread.current[:skip_counter_culture_updates]).include?(self.class) super end end # called by after_update callback def _update_counts_after_update unless Array(Thread.current[:skip_counter_culture_updates]).include?(self.class) super end end end end
Version data entries
10 entries across 10 versions & 1 rubygems