模块:Mongoid::Evolvable

包含在:
Association::Referenced::BelongsTo::ProxyComposable
定义于:
lib/mongoid/evolvable.rb

Overview

包含特定于可查询查询的演变的行为。

实例方法摘要折叠

实例方法详细信息

# __evolve_object_id__对象

将文档演变为对象ID。

例子:

改进文档。

document.__evolve_object_id__

返回:

  • ( Object )

    文档的 ID。



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

def __evolve_object_id__
  _id
end