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:
parent
4b6886a140
commit
8004c91eb6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue