1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

pass arel to select_all rather than depend on method_missing

This commit is contained in:
Aaron Patterson 2013-07-09 17:18:52 -07:00
parent 4b6886a140
commit 8004c91eb6

View file

@ -246,7 +246,7 @@ module ActiveRecord
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