Refactored paginator to use RKURL rather than relying on its own baseURL and resource path. Expanded paginator documentation.

This commit is contained in:
Blake Watters
2012-01-10 23:29:52 -05:00
parent 415ef5a193
commit 89b02e7550
7 changed files with 109 additions and 128 deletions

View File

@@ -126,12 +126,7 @@
}
- (RKURL *)URLByInterpolatingResourcePathWithObject:(id)object {
NSString *interpolatedResourcePath = [self.resourcePath interpolateWithObject:object];
return [RKURL URLWithBaseURL:self.baseURL resourcePath:interpolatedResourcePath queryParameters:self.queryParameters];
}
- (RKURL *)URLByInterpolatingWithObject:(id)object {
return [RKURL URLWithString:[[self absoluteString] interpolateWithObject:object]];
return [self URLByReplacingResourcePath:[self.resourcePath interpolateWithObject:object]];
}
#pragma mark - NSURL Overloads