Skip to content

Commit

Permalink
Changed self.dynamicType in the convenience init method to use the fu…
Browse files Browse the repository at this point in the history
…ll class name (can't assess self before the call to self.init there)
  • Loading branch information
DaveWoodCom committed Jun 6, 2014
1 parent 81d0a82 commit 60c2c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/machine.swift.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class _<$managedObjectClassName$>: <$customSuperentity$> {
}

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

Expand Down

0 comments on commit 60c2c7e

Please sign in to comment.