Sha256: f0cddc3d4e58dd85e14b0529b997bd1c02dff499c704ee471a82ad93cd8c2447

Contents?: true

Size: 492 Bytes

Versions: 10

Compression:

Stored size: 492 Bytes

Contents

require 'active_support/concern'
require 'active_support/lazy_load_hooks'

require 'counter_culture/version'
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

10 entries across 10 versions & 1 rubygems

Version Path
counter_culture-3.3.1 lib/counter_culture.rb
counter_culture-3.3.0 lib/counter_culture.rb
counter_culture-3.2.1 lib/counter_culture.rb
counter_culture-3.2.0 lib/counter_culture.rb
counter_culture-3.1.0 lib/counter_culture.rb
counter_culture-3.0.0 lib/counter_culture.rb
counter_culture-2.9.0 lib/counter_culture.rb
counter_culture-2.8.0 lib/counter_culture.rb
counter_culture-2.7.0 lib/counter_culture.rb
counter_culture-2.6.2 lib/counter_culture.rb