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
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
..
predicate_builder Respect custom primary keys for associations in Relation#where 2015-02-04 08:56:46 -07:00
batches.rb
calculations.rb Attribute assignment and type casting has nothing to do with columns 2015-01-31 19:42:38 -07:00
delegation.rb
finder_methods.rb
from_clause.rb
merger.rb
predicate_builder.rb
query_attribute.rb
query_methods.rb
spawn_methods.rb
where_clause.rb
where_clause_factory.rb