Make json api adapter 'include' option accept an array, accommodate comma delimited string for legacy reasons

This commit is contained in:
Robbie Pitts
2015-01-12 14:54:06 -05:00
parent b8df4b57a1
commit ad5677c4ec
6 changed files with 144 additions and 105 deletions

View File

@@ -189,6 +189,8 @@ resources in the `"linked"` member when the resource names are included in the
`include` option.
```ruby
render @posts, include: ['authors', 'comments']
# or
render @posts, include: 'authors,comments'
```