# encoding: utf-8 module Mongoid # :nodoc: module Relations #:nodoc: # This is the superclass for one to one relations and defines the common # behaviour or those proxies. class One < Proxy # Get all the documents in the relation that are loaded into memory. # # @example Get the in memory documents. # relation.in_memory # # @return [ Array ] The documents in memory. # # @since 2.1.0 def in_memory [ target ] end end end end