Skip to content

Commit

Permalink
Merge pull request #210 from afrederick1/swift-machine-template-update
Browse files Browse the repository at this point in the history
[CHANGE] Swift: add override to entityName function if this entity has a superentity. (afrederick1)
  • Loading branch information
rentzsch committed Jun 24, 2014
2 parents 3f4c486 + 8103e53 commit d38ebf1
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 @@ -32,7 +32,7 @@ class _<$managedObjectClassName$>: <$customSuperentity$> {

/// pragma mark - Class methods

class func entityName () -> String {
<$if hasCustomSuperentity$>override <$endif$>class func entityName () -> String {
return "<$name$>"
}

Expand Down

0 comments on commit d38ebf1

Please sign in to comment.