mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Merge pull request #1095 from beauby/config-docs
Add documentation about configuration options.
This commit is contained in:
commit
c03427dc5c
@ -8,6 +8,7 @@ This is the documentation of AMS, it's focused on the **0.10.x version.**
|
||||
|
||||
- [Getting Started](general/getting_started.md)
|
||||
- [Adapters](general/adapters.md)
|
||||
- [Configuration Options](general/configuration_options.md)
|
||||
|
||||
## How to
|
||||
|
||||
|
||||
11
docs/general/configuration_options.md
Normal file
11
docs/general/configuration_options.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Configuration Options
|
||||
|
||||
The following configuration options can be set on `ActiveModel::Serializer.config` inside an initializer.
|
||||
|
||||
## General
|
||||
|
||||
- `adapter`: The [adapter](adapters.md) to use. Possible values: `:flatten_json, :json, :json_api`. Default: `:flatten_json`.
|
||||
|
||||
## JSON API
|
||||
|
||||
- `jsonapi_resource_type`: Whether the `type` attributes of resources should be singular or plural. Possible values: `:singular, :plural`. Default: `:plural`.
|
||||
Loading…
Reference in New Issue
Block a user