```ruby
require 'after_commit_action'
require 'active_support/concern'

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
::ActiveRecord::Base.send :include, CounterCulture::Extensions
```

Use `ActiveSupport.on_load` to hook into ActiveRecord
user
```ruby
require 'after_commit_action'
require 'active_support/concern'

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
```
assistant