mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Fix horrible bugs in previous commit
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user