模块:Mongoid::Association::Referenced::HasAndBelongsToMany::Proxy::ClassMethods

包含在:
Mongoid::Association::Referenced::HasAndBelongsToMany::Proxy
定义于:
lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb

Overview

HasAndBelongsToMany::Proxy 的类级方法

实例方法摘要折叠

实例方法详细信息

#ager_loader (association, Docs ) ⇒对象

获取此类关联的 Eager对象。

例子:

获取急切加载器对象

参数:



23
24
25
# File 'lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb', line 23

def Eager_Loader(关联, docs)
  Eager.new(关联, docs)
end

# embedded?false

如果关联为嵌入式关联,则返回 true。 在这种情况下始终为 false。

例子:

此关联是否为嵌入式关联?

Referenced::ManyToMany.embedded?

返回:

  • ( false )

    始终为 false。



34
35
36
# File 'lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb', line 34

def 嵌入式?
  false
end