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 Put back Relation#join method as a delegate to Array 2014-05-05 16:45:16 +03:00
merging_test.rb Remove Relation#bind_params 2015-01-27 16:10:03 -07:00
mutation_test.rb Move the from bind logic to a FromClause class 2015-01-26 16:36:14 -07:00
or_test.rb Post.all.or(anything) == Post.all 2015-01-29 13:57:47 -07:00
predicate_builder_test.rb Should escape regexp wildcard character . 2015-01-19 06:11:29 +09:00
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