Update README with nested included association example.

This commit is contained in:
Matt Mueller 2015-09-14 13:35:29 -04:00
parent 7e2f3d122b
commit 6395f69541

View File

@ -204,12 +204,12 @@ Doesn't follow any specifc convention.
This adapter follows 1.0 of the format specified in
[jsonapi.org/format](http://jsonapi.org/format). It will include the associated
resources in the `"included"` member when the resource names are included in the
`include` option.
`include` option. Including nested associated resources is also supported.
```ruby
render @posts, include: ['authors', 'comments']
render @posts, include: ['author', 'comments', 'comments.author']
# or
render @posts, include: 'authors,comments'
render @posts, include: 'author,comments,comments.author'
```
## Installation