mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Extended format for JSONAPI include option.
This commit is contained in:
@@ -30,6 +30,8 @@ resources in the `"included"` member when the resource names are included in the
|
||||
render @posts, include: 'authors,comments'
|
||||
```
|
||||
|
||||
The format of the `include` option can be either a String composed of a comma-separated list of [relationship paths](http://jsonapi.org/format/#fetching-includes), an Array of Symbols and Hashes, or a mix of both.
|
||||
|
||||
## Choosing an adapter
|
||||
|
||||
If you want to use a specify a default adapter, such as JsonApi, you can change this in an initializer:
|
||||
|
||||
Reference in New Issue
Block a user