Method: Mongoid::Relations::Metadata#relation

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

#relationProxy

Get the relation associated with this metadata.

Examples:

Get the relation.

.relation

Returns:

  • (Proxy)

    The relation proxy class.

Since:

  • 2.1.0



649
650
651
# File 'lib/mongoid/relations/metadata.rb', line 649

def relation
  self[:relation]
end