Documenting Adapter. Fixing typo in association.rb documentation.

This commit is contained in:
Scott Kobewka
2016-08-17 20:23:28 -04:00
parent 455068d455
commit 7178b9de7b
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