Module | Mongoid::Keys |
In: |
lib/mongoid/keys.rb
|
This module defines the behaviour for overriding the default ids on documents.
identifier | [R] |
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