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

Bugfix: include nested has_many associations #726

Merged
merged 1 commit into from
Nov 12, 2014

Conversation

kurko
Copy link
Member

@kurko kurko commented Nov 11, 2014

Currently, doing include: author.bio would work correctly, but not for
has_many associations such as include: author.roles. This fixes it.

The problem was basically that we were not handling arrays for has_many linked,
as happens for ArraySerializers.

Currently, doing `include: author.bio` would work correctly, but not for
has_many associations such as `include: author.roles`. This fixes it.

The problem was basically that we were not handling arrays for has_many linked,
as happens for ArraySerializers.
@kurko
Copy link
Member Author

kurko commented Nov 11, 2014

Would love some +1's here so I don't feel bad merging my own PR. /cc @ggordon @guilleiguaran

@guilleiguaran
Copy link
Member

Looks good in my opinion 😄

@ggordon
Copy link
Contributor

ggordon commented Nov 11, 2014

+1

1 similar comment
@locks
Copy link

locks commented Nov 11, 2014

👍

kurko added a commit that referenced this pull request Nov 12, 2014
…as-many

Bugfix: include nested has_many associations
@kurko kurko merged commit 7592e83 into master Nov 12, 2014
@kurko kurko deleted the json-api-include-with-nested-has-many branch November 12, 2014 00:51
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.

4 participants