Module: ArLazyPreload::Association

Defined in:
lib/ar_lazy_preload/active_record/association.rb

Overview

ActiveRecord::Association patch with a hook for lazy preloading

Instance Method Summary collapse

Instance Method Details

#load_targetObject



6
7
8
9
# File 'lib/ar_lazy_preload/active_record/association.rb', line 6

def load_target
  owner.try_preload_lazily(reflection.name)
  super
end