Skip to content

Commit 5428b25

Browse files
author
Dany L'Hébreux
committed
Add linked resource String support
1 parent 94f3069 commit 5428b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/JSONAPIResource.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ - (void)linkLinks:(NSDictionary*)linked {
154154

155155
// Gets linked objects for the resource
156156
id linksTo = [self.links objectForKey:linkTypeUnmapped];
157-
if ([linksTo isKindOfClass:[NSNumber class]] == YES) {
157+
if ([linksTo isKindOfClass:[NSNumber class]] == YES || [linksTo isKindOfClass:[NSString class]] == YES) {
158158
JSONAPIResource *linkedResource = [[linked objectForKey:linkType] objectForKey:linksTo];
159159

160160
if (linkedResource != nil) {

0 commit comments

Comments
 (0)