Skip to content

Commit

Permalink
Fix bug in route retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
blakewatters committed Sep 13, 2012
1 parent 29ba601 commit d3cad8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/ObjectMapping/RKObjectRouter.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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;
}
}
Expand Down

0 comments on commit d3cad8d

Please sign in to comment.