Moved query path appending to RKPathAppendQueryParams for convenience. Deprecated RKClient flavor.

This commit is contained in:
Blake Watters
2011-04-27 08:57:40 -04:00
parent 992bde4afb
commit ff2367d284
3 changed files with 31 additions and 10 deletions

View File

@@ -162,7 +162,7 @@ static RKObjectManager* sharedManager = nil;
}
- (RKObjectLoader*)loadObjectsAtResourcePath:(NSString *)resourcePath queryParams:(NSDictionary*)queryParams delegate:(NSObject <RKObjectLoaderDelegate>*)delegate {
NSString* resourcePathWithQuery = [self.client resourcePath:resourcePath withQueryParams:queryParams];
NSString* resourcePathWithQuery = RKPathAppendQueryParams(resourcePath, queryParams);
RKObjectLoader* loader = [self objectLoaderWithResourcePath:resourcePathWithQuery delegate:delegate];
loader.method = RKRequestMethodGET;
@@ -182,7 +182,7 @@ static RKObjectManager* sharedManager = nil;
}
- (RKObjectLoader*)loadObjectsAtResourcePath:(NSString *)resourcePath queryParams:(NSDictionary*)queryParams objectClass:(Class<RKObjectMappable>)objectClass delegate:(NSObject <RKObjectLoaderDelegate>*)delegate {
NSString* resourcePathWithQuery = [self.client resourcePath:resourcePath withQueryParams:queryParams];
NSString* resourcePathWithQuery = RKPathAppendQueryParams(resourcePath, queryParams);
RKObjectLoader* loader = [self objectLoaderWithResourcePath:resourcePathWithQuery delegate:delegate];
loader.method = RKRequestMethodGET;
loader.objectClass = objectClass;