Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pass arel to select_all rather than depend on method_missing

  • Loading branch information...
commit 8004c91eb67b5d690a4eb8ed4ee475a6d2dc0d6c 1 parent 4b6886a
@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
@@ -246,7 +246,7 @@ def find_with_associations
if ActiveRecord::NullRelation === relation
[]
else
- rows = connection.select_all(relation, 'SQL', relation.bind_values.dup)
+ rows = connection.select_all(relation.arel, 'SQL', relation.bind_values.dup)
join_dependency.instantiate(rows)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.