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
Ryuta Kamizono bc9beb27aa Fix where on polymorphic association with non Active Record object
It is a regression for #40815.

If `where` on polymorphic association with non Active Record object,
`associated_table.join_primary_key` is called without `klass` in
`AssociationQueryValue`, it is wrong usage for polymorphic association.

Always use `PolymorphicArrayValue` for polymorphic association to avoid
the issue.

Fixes #40937.
2020-12-28 07:02:46 +09:00
..
active_record/connection_adapters
activejob Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
assets
cases Fix where on polymorphic association with non Active Record object 2020-12-28 07:02:46 +09:00
fixtures Ignore strict loading violations on instances loaded through fixtures 2020-12-10 15:23:14 -06:00
migrations
models Allow delegated_type to be specified primary_key and foreign_key 2020-12-18 15:06:16 +09:00
schema Allow delegated_type to be specified primary_key and foreign_key 2020-12-18 15:06:16 +09:00
support Implement granular role and shard swapping 2020-10-28 15:11:35 -04:00
config.example.yml
config.rb