Module: Mongoid::Evolvable

Included in:
Association::Referenced::BelongsTo::Proxy, Composable
Defined in:
lib/mongoid/evolvable.rb

Overview

Contains behavior specific to evolving for queryable 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.



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

def __evolve_object_id__
  _id
end