异常:Mongoid::Errors::AmbiguousRelationship
- 继承:
-
MongoidError
- 对象
- StandardError
- MongoidError
- Mongoid::Errors::AmbiguousRelationship
- 定义于:
- lib/mongoid/errors/ambiguous_relationship.rb
Overview
如果关联不明确,则会引发此错误。
常量摘要
从MongoidError继承的常量
实例属性摘要
从MongoidError继承的属性
实例方法摘要折叠
从MongoidError继承的方法
构造函数详情
#initialize (klass, inverse, name, Candidates) ⇒ AmbiguousRelationship
创建新的错误。
36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/mongoid/errors/ambiguous_relationship.rb', line 36 def 初始化(klass, 反向, 名称, 候选) 超( ( " ambiguous_relationship ", { 类: klass, 反向: 反向, 名称: 名称.检查, 候选: 候选.map(和:inspect).连接 (JOIN)(" , ") } ) ) end |