Skip to content

Commit

Permalink
calling construct_relation_for_association_find is no longer necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Oct 13, 2013
1 parent 7fe6d24 commit d00f969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation/finder_methods.rb
Expand Up @@ -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)
Expand Down

0 comments on commit d00f969

Please sign in to comment.