Class | Mongoid::Relations::Embedded::In |
In: |
lib/mongoid/relations/embedded/in.rb
|
Parent: | Relations::One |
This class defines the behaviour necessary to handle relations that are embedded within another relation, either as a single document or multiple documents.
Instantiate a new embedded_in relation.
@example Create the new relation.
Embedded::In.new(name, person, metadata)
@param [ Document ] base The document the relation hangs off of. @param [ Document ] target The target (parent) of the relation. @param [ Metadata ] metadata The relation metadata.
@return [ In ] The proxy.