[DOCS] Refactor, update, create documentation [ci skip]

This commit is contained in:
Benjamin Fleischer
2015-12-10 15:12:06 -06:00
parent 1301b52696
commit ce17a1b305
26 changed files with 740 additions and 485 deletions

View File

@@ -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`