active_model_serializers/docs/general/configuration_options.md
2015-08-28 20:01:56 +02:00

12 lines
443 B
Markdown

# 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`.