You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix find_by with custom primary key for belongs_to association
Similar to rails#40809 which is fixed by rails#40815, but it is caused by dbda5fe.
`value.id if value.respond_to?(:id)` is not always correct if primary
key is customized on the belongs_to association.
Use `reflection.join_primary_key` in that case.
Fixesrails#41081.
0 commit comments