Permalink
Browse files

left out dealloc, whoops

  • Loading branch information...
1 parent 20dbcdd commit 34fcb9098c4f31d9530842d442a80f06b703858e @twoism committed Mar 6, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 generators/objectify/templates/model.m
@@ -22,4 +22,16 @@ + (NSString *)getRemoteCollectionName {
return @"<%=file_name.pluralize%>";
}
+-(void)dealloc
+{
+<%- file_name.camelize.constantize.columns.each do |col| -%>
+ <%- unless col.name == "id" -%>
+ [<%= col.name.camelize(:lower) -%> release];
+ <%- else -%>
+ [<%= file_name.camelize(:lower) -%>Id release];
+ <%- end -%>
+<% end %>
+ [super dealloc];
+}
+
@end

0 comments on commit 34fcb90

Please sign in to comment.