Skip to content

Commit

Permalink
Merge pull request #1095 from beauby/config-docs
Browse files Browse the repository at this point in the history
Add documentation about configuration options.
  • Loading branch information
joaomdmoura committed Sep 7, 2015
2 parents 8e08437 + bac812f commit c03427d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This is the documentation of AMS, it's focused on the **0.10.x version.**

- [Getting Started](general/getting_started.md)
- [Adapters](general/adapters.md)
- [Configuration Options](general/configuration_options.md)

## How to

Expand Down
11 changes: 11 additions & 0 deletions docs/general/configuration_options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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`.

0 comments on commit c03427d

Please sign in to comment.