You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (! [attributeName isKindOfClass:[NSStringclass]]) {
45
-
[NSExceptionraise:NSInvalidArgumentExceptionformat:@"Invalid value given in user info key '%@' of entity '%@': expected an `NSString` or `NSArray` of strings, instead got '%@' (%@)", RKEntityIdentificationAttributesUserInfoKey, [entity name], attributeName, [attributeName class]];
[NSExceptionraise:NSInvalidArgumentExceptionformat:@"Invalid identifier attribute specified in user info key '%@' of entity '%@': no attribue was found with the name '%@'", RKEntityIdentificationAttributesUserInfoKey, [entity name], attributeName];
51
-
}
52
-
53
-
[attributes addObject:attribute];
54
-
}];
55
-
return attributes;
56
-
}
39
+
do {
40
+
id userInfoValue = [[entity userInfo] valueForKey:RKEntityIdentificationAttributesUserInfoKey];
if (! [attributeName isKindOfClass:[NSStringclass]]) {
46
+
[NSExceptionraise:NSInvalidArgumentExceptionformat:@"Invalid value given in user info key '%@' of entity '%@': expected an `NSString` or `NSArray` of strings, instead got '%@' (%@)", RKEntityIdentificationAttributesUserInfoKey, [entity name], attributeName, [attributeName class]];
[NSExceptionraise:NSInvalidArgumentExceptionformat:@"Invalid identifier attribute specified in user info key '%@' of entity '%@': no attribue was found with the name '%@'", RKEntityIdentificationAttributesUserInfoKey, [entity name], attributeName];
0 commit comments