Class: EagerRecord::ScopedPreloading
- Inherits:
-
Object
- Object
- EagerRecord::ScopedPreloading
- Defined in:
- lib/eager_record/scoped_preloading.rb
Defined Under Namespace
Modules: AssociationCollectionExtensions, BaseExtensions, HasManyAssociationExtensions
Constant Summary collapse
- TEMPORARY_SCOPED_PRELOAD_ASSOCIATION =
:"_temporary_association_for_scoped_preloading"
Class Method Summary collapse
Class Method Details
.install ⇒ Object
7 8 9 10 11 |
# File 'lib/eager_record/scoped_preloading.rb', line 7 def install ActiveRecord::Base.module_eval { include(EagerRecord::ScopedPreloading::BaseExtensions) } ActiveRecord::Associations::AssociationCollection.module_eval { include(EagerRecord::ScopedPreloading::AssociationCollectionExtensions) } ActiveRecord::Associations::HasManyAssociation.module_eval { include(EagerRecord::ScopedPreloading::HasManyAssociationExtensions) } end |