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/cases/relation
Sean Griffin cd0ed12d1a Respect custom primary keys for associations in Relation#where
While we query the proper columns, we go through normal handling for
converting the value to a primitive which assumes it should use the
table's primary key. If the association specifies a different value (and
we know that we're working with an association), we should use the
custom primary key instead.

Fixes #18813.
2015-02-04 08:56:46 -07:00
..
delegation_test.rb
merging_test.rb Remove Relation#bind_params 2015-01-27 16:10:03 -07:00
mutation_test.rb
or_test.rb Post.all.or(anything) == Post.all 2015-01-29 13:57:47 -07:00
predicate_builder_test.rb
where_chain_test.rb WhereClause#predicates does not need to be public 2015-01-27 10:30:38 -07:00
where_clause_test.rb Post.all.or(anything) == Post.all 2015-01-29 13:57:47 -07:00
where_test.rb Respect custom primary keys for associations in Relation#where 2015-02-04 08:56:46 -07:00