fix for breakage introduced during merge

This commit is contained in:
Blake Watters
2011-03-21 18:53:16 -04:00
parent 483df33a37
commit 102180abce
3 changed files with 17 additions and 3 deletions

View File

@@ -101,8 +101,7 @@ static DBUser* currentUser = nil;
RKObjectLoader* objectLoader = [[RKObjectManager sharedManager] objectLoaderWithResourcePath:@"/login" delegate:self];
objectLoader.method = RKRequestMethodPOST;
objectLoader.params = [NSDictionary dictionaryWithKeysAndObjects:@"user[username]", username, @"user[password]", password, nil];
objectLoader.targetObject = self;
objectLoader.managedObjectStore = [RKObjectManager sharedManager].objectStore;
objectLoader.targetObject = self;
[objectLoader send];
}

View File

@@ -45,7 +45,7 @@ static NSString* const kDBAccessTokenHTTPHeaderField = @"X-USER-ACCESS-TOKEN";
// Set the default refresh rate to 1. This means we should always hit the web if we can.
// If the server is unavailable, we will load from the Core Data cache.
[RKRequestTTModel setDefaultRefreshRate:1];
// [RKRequestTTModel setDefaultRefreshRate:1];
// Set nil for any attributes we expect to appear in the payload, but do not
objectManager.mapper.missingElementMappingPolicy = RKSetNilForMissingElementMappingPolicy;