Module: PireLoader::Patches::Associations::SingularAssociation

Defined in:
lib/pire_loader/patches/associations/singular_association.rb

Instance Method Summary collapse

Instance Method Details

#find_targetObject



7
8
9
10
11
# File 'lib/pire_loader/patches/associations/singular_association.rb', line 7

def find_target
  return super unless lazy_load?

  PireLoader::Loaders::Singular.preload(self) && target
end