Skip to content
Browse files

Fix bug in route retrieval

  • Loading branch information...
1 parent 29ba601 commit d3cad8df4e0e7ad4d47325c7f02a9fc316aa1ce3 @blakewatters blakewatters committed Sep 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Code/ObjectMapping/RKObjectRouter.m
View
4 Code/ObjectMapping/RKObjectRouter.m
@@ -109,7 +109,7 @@ - (NSString *)resourcePathForObject:(NSObject *)object method:(RKRequestMethod)m
for (NSString *possibleClassName in _routes) {
Class possibleClass = NSClassFromString(possibleClassName);
if ([object isMemberOfClass:possibleClass]) {
- classRoutes = [_routes objectForKey:possibleClass];
+ classRoutes = [_routes objectForKey:possibleClassName];
break;
}
}
@@ -119,7 +119,7 @@ - (NSString *)resourcePathForObject:(NSObject *)object method:(RKRequestMethod)m
for (NSString *possibleClassName in _routes) {
Class possibleClass = NSClassFromString(possibleClassName);
if ([object isKindOfClass:possibleClass]) {
- classRoutes = [_routes objectForKey:possibleClass];
+ classRoutes = [_routes objectForKey:possibleClassName];
break;
}
}

0 comments on commit d3cad8d

Please sign in to comment.
Something went wrong with that request. Please try again.