模块:Mongoid::Association::Reflections
Overview
反射模块提供了便捷的方法,可以检索有关关联的有用信息。
在命名空间下定义
模块: 类方法
实例方法摘要折叠
-
#reflect_on_all_association (*macros) ⇒ Array<Mongoid::Association::Relatable>
返回所提供宏的所有关联元数据。
-
#reflect_on_association (name) ⇒ Mongoid::Association::Relatable
返回所提供名称的关联元数据。
实例方法详细信息
#reflect_on_all_association (*macros) ⇒ Array< Mongoid::Association::Relatable >
返回所提供宏的所有关联元数据。
32 33 34 |
# File 'lib/mongoid/association/reflections.rb', line 32 def href_on_all_association(*宏) self.class.href_on_all_associations(*宏) end |
#reflect_on_association (name) ⇒ Mongoid::Association::Relatable
返回所提供名称的关联元数据。
20 21 22 |
# File 'lib/mongoid/association/reflections.rb', line 20 def href_on_association(名称) self.class.href_on_association(名称) end |