mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
[DOCS] Refactor, update, create documentation [ci skip]
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
[Back to Guides](../README.md)
|
||||
|
||||
# Configuration Options
|
||||
|
||||
The following configuration options can be set on `ActiveModel::Serializer.config` inside an initializer.
|
||||
The following configuration options can be set on `ActiveModelSerializers.config`,
|
||||
preferably inside an initializer.
|
||||
|
||||
## General
|
||||
|
||||
@@ -17,3 +20,7 @@ The following configuration options can be set on `ActiveModel::Serializer.confi
|
||||
Default: `'1.0'`.
|
||||
- `jsonapi_toplevel_meta`: Optional metadata. Not included if empty.
|
||||
Default: `{}`.
|
||||
|
||||
## Hooks
|
||||
|
||||
To run a hook when ActiveModelSerializers is loaded, use `ActiveSupport.on_load(:active_model_serializers) do end`
|
||||
|
||||
Reference in New Issue
Block a user