Method: Mongoid::Relations::Metadata#path

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

#path(document) ⇒ Object

Get the path calculator for the supplied document.

Examples:

Get the path calculator.

.path(document)

Since:

  • 2.1.0

Parameters:

  • The document to calculate on.

Returns:

  • The atomic path calculator.



625
626
627
# File 'lib/mongoid/relations/metadata.rb', line 625

def path(document)
  relation.path(document)
end