Merge pull request #1799 from ScottKbka/patch-1

Update rendering.md
This commit is contained in:
Benjamin Fleischer
2016-08-31 16:18:47 -05:00
committed by GitHub
3 changed files with 8 additions and 2 deletions

View File

@@ -82,7 +82,11 @@ See [Fields](fields.md) for more information.
#### adapter
PR please :)
This option lets you explicitly set the adapter to be used by passing a registered adapter. Your options are `:attributes`, `:json`, and `:json_api`.
```
ActiveModel::Serializer.config.adapter = :json_api
```
#### key_transform