-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
belongs_to with custom foreign_key is breaking in 2.0.0.rc #3184
Comments
maokomioko
changed the title
belongs_to with custom foreign_key is breaking in 2.0.0 r.c
belongs_to with custom foreign_key is breaking in 2.0.0.rc
Aug 9, 2019
Yeah that's the intention of my fix. What are you trying to do? How does your schema look like and why do you need previous behavior? |
Sorry it was my fault, just pushed a fix 0e92ca4 in the master. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having a model with indirect association:
belongs_to :organization, primary_key: :org_number, foreign_key: :org_number
Belongs to association dropdowns return object's ID (as primary key) instead of customly specified key.
This looks like a regression from here:
be7d2f4#diff-3ccbdf28331673e0d29522ba324bddcfR81
Just to be sure I switched back to the earlier commit and dropdown values are filled with org_number as expected.
The text was updated successfully, but these errors were encountered: