Add config.serializer_lookup_enabled that defaults true

This commit is contained in:
Benjamin Fleischer
2015-11-30 00:12:21 -06:00
parent 47a14b6581
commit 28394340d8
7 changed files with 54 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ The following configuration options can be set on `ActiveModel::Serializer.confi
## General
- `adapter`: The [adapter](adapters.md) to use. Possible values: `:attributes, :json, :json_api`. Default: `:attributes`.
- `automatic_lookup`: Whether serializer should be automatically looked up or manually provided. Default: `true`
- `serializer_lookup_enabled`: When `false`, serializers must be explicitly specified. Default: `true`
## JSON API