calling construct_relation_for_association_find is no longer necessary
This commit is contained in:
parent
7fe6d24506
commit
d00f9692b8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user