Sha256: b31d75e31b1e964a081bac1cd88e41bc3c641ecc7e1bd0fed778c91542e636d7

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

ActiveSupport.on_load(:active_record) do
  module ActiveRecord
    Reflection.send(:prepend, CountLoader::ReflectionExtension)
    Associations::Preloader.send(:prepend, CountLoader::PreloaderExtension)
    Associations::JoinDependency.send(:prepend, CountLoader::JoinDependencyExtension)
    Associations::Builder::HasMany.send(:prepend, CountLoader::Builder::HasManyExtension)
    Reflection::AssociationReflection.send(:prepend, CountLoader::AssociationReflectionExtension)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-count_loader-0.3.3 lib/active_record/count_loader/extend.rb
activerecord-count_loader-0.3.2 lib/active_record/count_loader/extend.rb
activerecord-count_loader-0.3.1 lib/active_record/count_loader/extend.rb
activerecord-count_loader-0.3.0 lib/active_record/count_loader/extend.rb