Fix horrible bugs in previous commit

This commit is contained in:
Blake Watters
2012-10-21 15:58:03 -04:00
parent f93a044561
commit 117fcbb18c
2 changed files with 2 additions and 2 deletions

View File

@@ -701,7 +701,7 @@ static BOOL RKIsManagedObject(id object)
// We did some mapping work, if there's no error let's commit our changes to the data source
if (self.error == nil) {
if ([self.dataSource respondsToSelector:@selector(commitChangesForMappingOperation:)]) {
if ([self.dataSource respondsToSelector:@selector(commitChangesForMappingOperation:error:)]) {
NSError *error = nil;
BOOL success = [self.dataSource commitChangesForMappingOperation:self error:&error];
if (! success) {