Module: Mongoid::Evolvable

Included in:
Composable, Relations::Referenced::In
Defined in:
lib/mongoid/evolvable.rb

Overview

Contains behaviour specific to evolving for origin queries.

Instance Method Summary collapse

Instance Method Details

#__evolve_object_id__Object

Evolve the document into an object id.

Examples:

Evolve the document.

document.__evolve_object_id__

Returns:

  • (Object)

    The document’s id.

Since:

  • 3.0.0



15
16
17
# File 'lib/mongoid/evolvable.rb', line 15

def __evolve_object_id__
  id
end