Skip to content

Conversation

bf4
Copy link
Member

@bf4 bf4 commented Mar 30, 2016

No description provided.

- prevents `association_name` method from being called.
- return value of block is used as the association value.
- yields the `serializer` to the block.
- `include_data false` ignores the return value of the block.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually to remove the data key from the JSON API relationship object.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh right. was just writing this qiuckly

@groyoh
Copy link
Member

groyoh commented Apr 6, 2016

@bf4 I fixed the include_data error. Feel free to squash or/and merge 😉

@bf4 bf4 merged commit afe3c93 into rails-api:master Apr 10, 2016
@bf4 bf4 deleted the add_more_association_documentation branch April 10, 2016 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants