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/active_record/relation
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
..
batches Return rows affected from batched update_all and delete_all 2020-10-03 18:27:26 +01:00
predicate_builder Fix where on polymorphic association with non Active Record object 2020-12-28 07:02:46 +09:00
batches.rb Simplify apply_{start,finish}_limit 2020-07-25 09:38:00 +09:00
calculations.rb count, avarage, maximum, minimum, and sum are defined as public methods in Arel::Expressions 2020-10-02 21:45:58 +09:00
delegation.rb Allow define scope for Ruby reserved keywords 2020-05-14 21:39:39 +09:00
finder_methods.rb Avoid query from exists? on contradictory relation 2020-10-14 12:30:10 -07:00
from_clause.rb Merge pull request #38145 from sinsoku/avoid_assigning_the_same_value_to_join_values 2020-01-04 21:31:36 +09:00
merger.rb Relation methods are public 2020-10-02 21:36:35 +09:00
predicate_builder.rb Fix where on polymorphic association with non Active Record object 2020-12-28 07:02:46 +09:00
query_attribute.rb
query_methods.rb Expose an invert_where method that will invert all scope conditions. 2020-12-18 16:00:20 -05:00
record_fetch_warning.rb
spawn_methods.rb Set the inverse record on find with multiple ids from has_many association 2020-11-05 23:26:56 +09:00
where_clause.rb where.not now generates NAND predicates instead of NOR 2020-10-30 00:25:35 +00:00