Sha256: bead644fc624804a29ba17c1256d69f23040ea9a9a849b7a409af8dcfc776037
Contents?: true
Size: 488 Bytes
Versions: 33
Compression:
Stored size: 488 Bytes
Contents
require 'after_commit_action' require 'active_support/concern' require 'active_support/lazy_load_hooks' require 'counter_culture/extensions' require 'counter_culture/counter' require 'counter_culture/reconciler' module CounterCulture mattr_accessor :batch_size self.batch_size = 1000 def self.config yield(self) if block_given? self end end # extend ActiveRecord with our own code here ActiveSupport.on_load(:active_record) do include CounterCulture::Extensions end
Version data entries
33 entries across 33 versions & 1 rubygems