diff --git a/templates/machine.m.motemplate b/templates/machine.m.motemplate index 5e5984ce..db34071c 100644 --- a/templates/machine.m.motemplate +++ b/templates/machine.m.motemplate @@ -9,7 +9,8 @@ @implementation _<$managedObjectClassName$> + (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ { - return [NSEntityDescription insertNewObjectForEntityForName:@"<$name$>" inManagedObjectContext:moc_]; + NSParameterAssert(moc_); + return [NSEntityDescription insertNewObjectForEntityForName:@"<$name$>" inManagedObjectContext:moc_]; } - (<$managedObjectClassName$>ID*)objectID {