Method: Mongoid::Relations::One#in_memory

Defined in:
lib/mongoid/relations/one.rb

#in_memoryArray<Document>

Get all the documents in the relation that are loaded into memory.

Examples:

Get the in memory documents.

relation.in_memory

Returns:

Since:

  • 2.1.0



17
18
19
# File 'lib/mongoid/relations/one.rb', line 17

def in_memory
  [ target ]
end