Skip to content

Bug fix: Allow multiple relationships to be defined in one declaration.#1003

Merged
lgebhardt merged 1 commit intoJSONAPI-Resources:masterfrom
dougo:add-multiple-relationships-at-once
Mar 21, 2017
Merged

Bug fix: Allow multiple relationships to be defined in one declaration.#1003
lgebhardt merged 1 commit intoJSONAPI-Resources:masterfrom
dougo:add-multiple-relationships-at-once

Conversation

@dougo
Copy link
Copy Markdown
Contributor

@dougo dougo commented Mar 15, 2017

I ran into some weird errors when I used has_many :foo, :bar to define two relationships in one declaration. I tracked it down to the fact that it was mutating the options hash in order to add class_name: Foo for the first relationship, which polluted the options for the second relationship.

@lgebhardt
Copy link
Copy Markdown
Contributor

@dougo Thanks!

@lgebhardt lgebhardt merged commit 6a25bee into JSONAPI-Resources:master Mar 21, 2017
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