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

Fix nested include attributes #774

Merged
merged 1 commit into from
Jan 13, 2015
Merged

Fix nested include attributes #774

merged 1 commit into from
Jan 13, 2015

Conversation

nhocki
Copy link
Contributor

@nhocki nhocki commented Jan 13, 2015

When the requests asked for a nested attribute in the include and it's missing or empty, don't break because the type of the object can't be determined.

If the request is for a collection and none of the elements has the attribute, it will not be added to the linked key, similar to what happens with simple includes.

When the requests asked for a nested attribute in the `include` and it's
missing or empty, don't break because the type of the object can't be
determined.

If the request is for a collection and none of the elements has the
attribute, it will not be added to the `linked` key, similar to what
happens with simple includes.
@kurko
Copy link
Member

kurko commented Jan 13, 2015

LGTM.

guilleiguaran added a commit that referenced this pull request Jan 13, 2015
@guilleiguaran guilleiguaran merged commit 6524938 into rails-api:master Jan 13, 2015
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.

3 participants