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
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 Fix where on polymorphic association with non Active Record object 2020-12-28 07:02:46 +09:00
arel Properly support reverse_order on relations with nulls_first or nulls_last calls 2020-09-08 11:20:46 -04:00
rails/generators The abstract parent class file generated via generator should not be pluralized 2020-08-02 22:25:57 +05:30
active_record.rb Destroy associations in a background job. 2020-09-24 14:24:15 -04:00
arel.rb Merge pull request #38719 from eileencodes/refactor-fetch_attribute 2020-03-13 16:26:49 -04:00