Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

calling construct_relation_for_association_find is no longer necessary

  • Loading branch information...
commit d00f9692b82deb8f90c4b3fb56f9e22cceb0e470 1 parent 7fe6d24
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation/finder_methods.rb
View
2  activerecord/lib/active_record/relation/finder_methods.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.