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.
Having a model with indirect association:
belongs_to :organization, primary_key: :org_number, foreign_key: :org_numberBelongs 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.