```ruby
require 'rails/railtie'
require 'quick_count/active_record/base'
require 'count_estimate/active_record/relation'
require 'pry'

module QuickCount
  class Railtie < Rails::Railtie

    # rake_tasks do
    #   load "../tasks/quick_count_tasks.rake"
    # end

    initializer 'quick_count.load' do |app|
      ActiveSupport.on_load(:active_record) do
        QuickCount.load
      end
    end

  end
end
```

Make sure this is scoped to root
user
```ruby
require 'rails/railtie'
require 'quick_count/active_record/base'
require 'count_estimate/active_record/relation'
require 'pry'

module QuickCount
  class Railtie < ::Rails::Railtie

    # rake_tasks do
    #   load "../tasks/quick_count_tasks.rake"
    # end

    initializer 'quick_count.load' do |app|
      ActiveSupport.on_load(:active_record) do
        QuickCount.load
      end
    end

  end
end
```
assistant