Permalink
Browse files

Merge branch 'v0.6' of github.com:mde/geddy into v0.6

  • Loading branch information...
2 parents 1128b81 + 55f726b commit b6a255f9937cf1471d8a76f3e8399f7d1ea00f32 mde committed Nov 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/resource/model.ejs
@@ -2,7 +2,7 @@ var <%= names.constructor.singular %> = function () {
this.defineProperties({
<% for (var i in properties) { -%>
-<% if (properties[i].name !== 'id') { -%>
+<% if (properties[i].name && properties[i].name !== 'id') { -%>
<% if (i === 'default') { -%>
<%= properties[i].name %>: {type: '<%= properties[i].type %>', required: true},
<% } else { -%>

0 comments on commit b6a255f

Please sign in to comment.