calling construct_relation_for_association_find is no longer necessary

This commit is contained in:
Aaron Patterson 2013-10-13 16:53:28 -07:00
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)