module Mongoload::RelationsEnumerableWithAutoInclude
Private Instance Methods
unloaded_documents()
click to toggle source
perform eager loading when loading unloaded documents
Calls superclass method
# File lib/mongoload/patches/relations_targets_enumerable.rb, line 19 def unloaded_documents if !_loaded? && Mongoload::RelationLoader.load(base, relation_metadata) base.ivar(relation_metadata.name) else super end end