We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09dc01a commit 0bbd749Copy full SHA for 0bbd749
Code/ObjectMapping/RKObjectMapping.m
@@ -271,7 +271,7 @@ - (NSString *)description
271
- (id)mappingForSourceKeyPath:(NSString *)sourceKeyPath
272
{
273
for (RKPropertyMapping *mapping in self.propertyMappings) {
274
- if ([mapping.sourceKeyPath isEqualToString:sourceKeyPath]) {
+ if (mapping.sourceKeyPath == sourceKeyPath || [mapping.sourceKeyPath isEqualToString:sourceKeyPath]) {
275
return mapping;
276
}
277
0 commit comments