mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
443 B
443 B
Configuration Options
The following configuration options can be set on ActiveModel::Serializer.config inside an initializer.
General
adapter: The adapter to use. Possible values::flatten_json, :json, :json_api. Default::flatten_json.
JSON API
jsonapi_resource_type: Whether thetypeattributes of resources should be singular or plural. Possible values::singular, :plural. Default::plural.