File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,8 @@ + (JSONAPIResourceDescriptor*)descriptor {
22
22
static dispatch_once_t onceToken;
23
23
dispatch_once (&onceToken, ^{
24
24
__descriptor = [[JSONAPIResourceDescriptor alloc ] initWithClass: [self class ] forLinkedType: @" comments" ];
25
-
26
- [__descriptor setIdProperty: @" ID" ];
27
-
28
25
[__descriptor addProperty: @" text" withJsonName: @" body" ];
29
-
26
+
30
27
[__descriptor hasOne: [PeopleResource class ] withName: @" author" ];
31
28
});
32
29
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ + (JSONAPIResourceDescriptor*)descriptor {
19
19
static dispatch_once_t onceToken;
20
20
dispatch_once (&onceToken, ^{
21
21
__descriptor = [[JSONAPIResourceDescriptor alloc ] initWithClass: [self class ] forLinkedType: @" people" ];
22
-
23
- [__descriptor setIdProperty: @" ID" ];
24
-
22
+
25
23
[__descriptor addProperty: @" firstName" withDescription: [[JSONAPIPropertyDescriptor alloc ] initWithJsonName: @" first-name" ]];
26
24
[__descriptor addProperty: @" lastName" withJsonName: @" last-name" ];
27
25
[__descriptor addProperty: @" twitter" ];
You can’t perform that action at this time.
0 commit comments