File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ AMS does this through two components: **serializers** and **adapters**.
8
8
Serializers describe _ which_ attributes and relationships should be serialized.
9
9
Adapters describe _ how_ attributes and relationships should be serialized.
10
10
11
+ By default AMS will use the JsonApi Adapter that follows RC3 of the format specified in [ jsonapi.org/format] ( http://jsonapi.org/format ) .
12
+ Check how to change the adapter in the sections bellow.
13
+
11
14
# RELEASE CANDIDATE, PLEASE READ
12
15
13
16
This is the master branch of AMS. It will become the ` 0.10.0 ` release when it's
47
50
```
48
51
49
52
Generally speaking, you as a user of AMS will write (or generate) these
50
- serializer classes. If you want to use a different adapter, such as a JsonApi, you can
53
+ serializer classes. If you want to use a different adapter, such as a normal Json adapter without the JsonApi conventions , you can
51
54
change this in an initializer:
52
55
53
56
``` ruby
54
- ActiveModel ::Serializer .config.adapter = ActiveModel ::Serializer ::Adapter ::JsonApi
57
+ ActiveModel ::Serializer .config.adapter = ActiveModel ::Serializer ::Adapter ::Json
55
58
```
56
59
57
60
or
58
61
59
62
``` ruby
60
- ActiveModel ::Serializer .config.adapter = :json_api
63
+ ActiveModel ::Serializer .config.adapter = :json
61
64
```
62
65
63
66
You won't need to implement an adapter unless you wish to use a new format or
You can’t perform that action at this time.
0 commit comments