Skip to content

Commit 9b3648d

Browse files
author
Josh Holtz
committed
Fix for resource now being init-ed
1 parent 4627231 commit 9b3648d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*.perspectivev3
1111
!default.perspectivev3
1212
xcuserdata
13+
xcshareddata
1314
profile
1415
*.moved-aside
1516
DerivedData

Classes/JSONAPIResourceParser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ @implementation JSONAPIResourceParser
5656
NSString *type = dictionary[@"type"] ?: @"";
5757
JSONAPIResourceDescriptor *descriptor = [JSONAPIResourceDescriptor forLinkedType:type];
5858

59-
NSObject <JSONAPIResource> *resource = [[descriptor resourceClass] alloc];
59+
NSObject <JSONAPIResource> *resource = [[[descriptor resourceClass] alloc] init];
6060
[self set:resource withDictionary:dictionary];
6161

6262
return resource;

0 commit comments

Comments
 (0)