Skip to content

Commit

Permalink
Make initializers public.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew J. Lazar committed Mar 27, 2015
1 parent 662fbef commit 015f987
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/machine.swift.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ class _<$managedObjectClassName$>: <$customSuperentity$> {

// MARK: - Life cycle methods

public
override init(entity: NSEntityDescription, insertIntoManagedObjectContext context: NSManagedObjectContext!) {
super.init(entity: entity, insertIntoManagedObjectContext: context)
}


public
convenience init(managedObjectContext: NSManagedObjectContext!) {
let entity = _<$managedObjectClassName$>.entity(managedObjectContext)
self.init(entity: entity, insertIntoManagedObjectContext: managedObjectContext)
Expand Down

0 comments on commit 015f987

Please sign in to comment.