Module: ArLazyPreload::AssociationRelation
- Defined in:
- lib/ar_lazy_preload/active_record/association_relation.rb
Overview
ActiveRecord::AssociationRelation patch for setting up lazy_preload_values based on owner context
Instance Method Summary collapse
Instance Method Details
#initialize(*args) ⇒ Object
7 8 9 10 |
# File 'lib/ar_lazy_preload/active_record/association_relation.rb', line 7 def initialize(*args) super(*args) setup_preloading_context unless ArLazyPreload.config.auto_preload? end |