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

Version Path
counter_culture-2.2.2 lib/counter_culture.rb
counter_culture-2.2.1 lib/counter_culture.rb
counter_culture-2.2.0 lib/counter_culture.rb
counter_culture-2.1.4 lib/counter_culture.rb
counter_culture-2.1.3 lib/counter_culture.rb
counter_culture-2.1.2 lib/counter_culture.rb
counter_culture-2.1.1 lib/counter_culture.rb
counter_culture-2.1.0 lib/counter_culture.rb
counter_culture-2.0.1 lib/counter_culture.rb
counter_culture-2.0.0 lib/counter_culture.rb
counter_culture-1.12.0 lib/counter_culture.rb
counter_culture-1.11.0 lib/counter_culture.rb
counter_culture-1.10.0 lib/counter_culture.rb
counter_culture-1.9.2 lib/counter_culture.rb
counter_culture-1.9.1 lib/counter_culture.rb
counter_culture-1.9.0 lib/counter_culture.rb
counter_culture-1.8.2 lib/counter_culture.rb
counter_culture-1.8.1 lib/counter_culture.rb
counter_culture-1.8.0 lib/counter_culture.rb
counter_culture-1.7.0 lib/counter_culture.rb