提交 d00f9692 编写于 作者: A Aaron Patterson

calling construct_relation_for_association_find is no longer necessary

上级 7fe6d245
......@@ -201,7 +201,7 @@ def exists?(conditions = :none)
conditions = conditions.id if Base === conditions
return false if !conditions
relation = construct_relation_for_association_find(construct_join_dependency)
relation = apply_join_dependency(self, construct_join_dependency)
return false if ActiveRecord::NullRelation === relation
relation = relation.except(:select, :order).select(ONE_AS_ONE).limit(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册