Skip to content

Instantly share code, notes, and snippets.

@sergdort
Created December 16, 2015 12:27
Show Gist options
  • Save sergdort/0bd7f6614af0ba44c9c0 to your computer and use it in GitHub Desktop.
Save sergdort/0bd7f6614af0ba44c9c0 to your computer and use it in GitHub Desktop.
extension SwiftImport {
public class func importObjects(context:NSManagedObjectContext) -> (array:[JSONDictionary]) throws -> [Element] {
return { array in
return try array.map(importObject(context))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment