We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e2f3d1 + 6395f69 commit 1ac82a1Copy full SHA for 1ac82a1
README.md
@@ -204,12 +204,12 @@ Doesn't follow any specifc convention.
204
This adapter follows 1.0 of the format specified in
205
[jsonapi.org/format](http://jsonapi.org/format). It will include the associated
206
resources in the `"included"` member when the resource names are included in the
207
-`include` option.
+`include` option. Including nested associated resources is also supported.
208
209
```ruby
210
- render @posts, include: ['authors', 'comments']
+ render @posts, include: ['author', 'comments', 'comments.author']
211
# or
212
- render @posts, include: 'authors,comments'
+ render @posts, include: 'author,comments,comments.author'
213
```
214
215
## Installation
0 commit comments