1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
Jacopo 8ab892e7b1 Fix eager_loading? when ordering with Hash syntax
`eager_loading?` is triggered correctly when using `order` with
hash syntax on an outer table.

before:
```ruby
Post.includes(:comments).order({ "comments.label": :ASC }).eager_loading?
=> raises ActiveRecord::StatementInvalid
```

after:
```ruby
Post.includes(:comments).order({ "comments.label": :ASC }).eager_loading?
=> true
```

Co-authored-by: Eugene Kenny <elkenny@gmail.com>
2021-07-15 14:26:31 +02:00
..
active_record/connection_adapters
activejob Revert "Run ActiveRecord -> ActiveJob integration tests in CI" 2021-06-15 11:19:04 -04:00
assets Replace test Man with Human 2020-08-14 11:37:09 -04:00
cases Fix eager_loading? when ordering with Hash syntax 2021-07-15 14:26:31 +02:00
fixtures Verify foreign keys after loading fixtures 2021-07-07 15:41:05 -05:00
migrations Show a warning when running no migration using SCOPE 2021-01-26 15:05:35 +01:00
models Add available_records argument to Associations::Preloader 2021-07-14 08:44:03 -04:00
schema Verify foreign keys after loading fixtures 2021-07-07 15:41:05 -05:00
support Move async_query confurations on the ActiveRecord module 2021-06-10 18:31:33 +02:00
config.example.yml Make we always type cast TimeWithZone objects before passing to mysql2 2021-02-11 22:45:14 +00:00
config.rb