Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #124 from AnthonyMDev/patch-1
Browse files Browse the repository at this point in the history
Make 'managedObjectContext' on `delete()`optional
  • Loading branch information
vmartinelli committed Feb 22, 2016
2 parents 9c8ae86 + 8404884 commit d72b83f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extension NSManagedObject {
extension NSManagedObject {

public func delete() {
self.managedObjectContext!.deleteObject(self)
self.managedObjectContext?.deleteObject(self)
}

public func refresh(mergeChanges: Bool = true) {
Expand Down

0 comments on commit d72b83f

Please sign in to comment.