File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed
lib/active_model_serializers/adapter/json_api Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -25,30 +25,30 @@ module Deserialization
25
25
#
26
26
# @example
27
27
# document = {
28
- # data: {
29
- # id: 1,
30
- # type: 'post',
31
- # attributes: {
32
- # title: 'Title 1',
33
- # date: '2015-12-20'
28
+ # ' data' => {
29
+ # 'id' => 1,
30
+ # ' type' => 'post',
31
+ # ' attributes' => {
32
+ # ' title' => 'Title 1',
33
+ # ' date' => '2015-12-20'
34
34
# },
35
- # associations: {
36
- # author: {
37
- # data: {
38
- # type: 'user',
39
- # id: 2
35
+ # 'relationships' => {
36
+ # ' author' => {
37
+ # ' data' => {
38
+ # ' type' => 'user',
39
+ # 'id' => 2
40
40
# }
41
41
# },
42
- # second_author: {
43
- # data: nil
42
+ # ' second_author' => {
43
+ # ' data' => nil
44
44
# },
45
- # comments: {
46
- # data: [{
47
- # type: 'comment',
48
- # id: 3
45
+ # ' comments' => {
46
+ # ' data' => [{
47
+ # ' type' => 'comment',
48
+ # 'id' => 3
49
49
# },{
50
- # type: 'comment',
51
- # id: 4
50
+ # ' type' => 'comment',
51
+ # 'id' => 4
52
52
# }]
53
53
# }
54
54
# }
You can’t perform that action at this time.
0 commit comments