From 6395f6954181713594796078784ec0af89a04ff7 Mon Sep 17 00:00:00 2001 From: Matt Mueller Date: Mon, 14 Sep 2015 13:35:29 -0400 Subject: [PATCH] Update README with nested included association example. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c80fb30f..f150b2db 100644 --- a/README.md +++ b/README.md @@ -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