Skip to content

Commit

Permalink
Merge branch 'equivalence-fix' of https://github.com/alexleigh/RestKit
Browse files Browse the repository at this point in the history
…into alexleigh-equivalence-fix

Conflicts:
	Code/ObjectMapping/RKPropertyMapping.m
	Vendor/SOCKit
  • Loading branch information
segiddins committed Jul 20, 2014
2 parents c17a180 + 3441f65 commit 64c649e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Code/Network/RKRequestDescriptor.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ - (BOOL)isEqualToRequestDescriptor:(RKRequestDescriptor *)otherDescriptor
[self.mapping isEqualToMapping:otherDescriptor.mapping] &&
self.objectClass == otherDescriptor.objectClass &&
self.method == otherDescriptor.method &&
[self.rootKeyPath isEqualToString:otherDescriptor.rootKeyPath];
((self.rootKeyPath == otherDescriptor.rootKeyPath) || [self.rootKeyPath isEqualToString:otherDescriptor.rootKeyPath]);
}

@end
4 changes: 2 additions & 2 deletions Code/Network/RKResponseDescriptor.m
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ - (BOOL)isEqualToResponseDescriptor:(RKResponseDescriptor *)otherDescriptor
return
[self.mapping isEqualToMapping:otherDescriptor.mapping] &&
self.method == otherDescriptor.method &&
[self.pathPattern isEqualToString:otherDescriptor.pathPattern] &&
[self.keyPath isEqualToString:otherDescriptor.keyPath] &&
((self.pathPattern == otherDescriptor.pathPattern) || [self.pathPattern isEqualToString:otherDescriptor.pathPattern]) &&
((self.keyPath == otherDescriptor.keyPath) || [self.keyPath isEqualToString:otherDescriptor.keyPath]) &&
[self.statusCodes isEqualToIndexSet:otherDescriptor.statusCodes];
}

Expand Down

0 comments on commit 64c649e

Please sign in to comment.