mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
bc9beb27aa
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. |
||
---|---|---|
.. | ||
active_record | ||
arel | ||
rails/generators | ||
active_record.rb | ||
arel.rb |