diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-02-04 08:44:48 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-02-04 08:56:46 -0700 |
commit | cd0ed12d1a9edc73be953d700748b5827df890c7 (patch) | |
tree | 86d2e0f466213a95f360164e421665bde5a6bdcd /guides/source/3_0_release_notes.md | |
parent | 1405c7a2cb3539880ebd82c287040b55d289a427 (diff) | |
download | rails-cd0ed12d1a9edc73be953d700748b5827df890c7.tar.gz rails-cd0ed12d1a9edc73be953d700748b5827df890c7.tar.bz2 rails-cd0ed12d1a9edc73be953d700748b5827df890c7.zip |
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.
Diffstat (limited to 'guides/source/3_0_release_notes.md')
0 files changed, 0 insertions, 0 deletions