Skip to content
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

Allow primary_key option on relationships instead of hard coding id #729

Merged
merged 1 commit into from
Jan 12, 2017
Merged

Allow primary_key option on relationships instead of hard coding id #729

merged 1 commit into from
Jan 12, 2017

Conversation

npezza93
Copy link
Contributor

Currently BelongsTo and HasMany default to using #id of the
related records. This will allow you to pass the option of primary_key
and use that fields' value in the form.

Currently BelongsTo and HasMany default to using #id of the
related records. This will allow you to pass the option of primary_key
and use that fields' value in the form.
@BenMorganIO
Copy link
Collaborator

This is awesome. Thank-you <3

@BenMorganIO BenMorganIO merged commit 5ebdb1a into thoughtbot:master Jan 12, 2017
@npezza93 npezza93 deleted the user-relationship-primary-key branch January 12, 2017 20:45
fwolfst pushed a commit to fwolfst/administrate that referenced this pull request Mar 8, 2017
…houghtbot#729)

Currently BelongsTo and HasMany default to using #id of the
related records. This will allow you to pass the option of primary_key
and use that fields' value in the form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants