Module Mongoid::Keys
In: lib/mongoid/keys.rb

This module defines the behaviour for overriding the default ids on documents.

Methods

Attributes

identifier  [R] 

Public Instance methods

Get the document‘s primary key.

@note Refactored from using delegate for class load performance.

@example Get the primary key.

  model.primary_key

@return [ Array ] The primary key

Is the document using object ids?

@note Refactored from using delegate for class load performance.

@example Is the document using object ids?

  model.using_object_ids?

@return [ true, false ] Using object ids.

[Validate]