1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Eugene Kenny cb670c5c98 Avoid running async queries on null relations
Calling `load_async` on a null relation was executing the fallback
`WHERE 1=0` query, since it doesn't go through `exec_queries`.

Since 2a90104989, `exec_queries` is
implemented in terms of `exec_main_query`, so we only need to override
that one method.

We can also stop assigning `@records`, as that now happens in `load`
since 847643a55a.
2021-05-17 21:34:41 +01:00
..
active_record Avoid running async queries on null relations 2021-05-17 21:34:41 +01:00
arel Revert "un-extract the Arel visitor for SelectOptions" 2021-05-11 09:58:12 -04:00
rails/generators Used double quotes in template file for consistency. 2021-04-30 02:58:51 +05:30
active_record.rb Add option to skip joins for associations. 2021-04-19 11:17:31 -04:00
arel.rb Merge pull request #38719 from eileencodes/refactor-fetch_attribute 2020-03-13 16:26:49 -04:00