模块:Mongoid::Selectable
Overview
提供为特定文档生成选择器的行为。
实例方法摘要折叠
-
#atomic_selector ⇒ 哈希
获取文档的原子选择器。
实例方法详细信息
#atomic_selector ⇒哈希
获取文档的原子选择器。 这是最简单情况下的哈希 { “ _id ” => ID } ,但对于嵌入式文档和使用分片分片键的文档可能会变得更复杂。
18 19 20 |
# File 'lib/mongoid/selectable.rb', line 18 def atomic_selector ? : root_atomic_selector_in_db end |