-
-
Save engmsaleh/45e18fb88839f413a416 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSArray *allEntities = [NSManagedObjectModel MR_defaultManagedObjectModel].entities; | |
[allEntities enumerateObjectsUsingBlock:^(NSEntityDescription *entityDescription, NSUInteger idx, BOOL *stop) { | |
[NSClassFromString([entityDescription managedObjectClassName]) MR_truncateAll]; | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment