Module: Mongoid::Evolvable

Included in:
Association::Referenced::BelongsTo::Proxy, Composable
Defined in:
build/mongoid-master/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.

Since:

  • 3.0.0



17
18
19
# File 'build/mongoid-master/lib/mongoid/evolvable.rb', line 17

def __evolve_object_id__
  _id
end