mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Refactored paginator to use RKURL rather than relying on its own baseURL and resource path. Expanded paginator documentation.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user