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



756
757
758
# File 'lib/mongoid/relations/metadata.rb', line 756

def relation
  self[:relation]
end