Skip to content
Browse files

Closes #244, don't add an ID property if no properties are given.

  • Loading branch information...
1 parent 77e79ea commit 9d64a6cf3b491270e2f205a69aa900f866e3b6b0 @larzconwell larzconwell committed Oct 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/Jakefile
View
4 templates/Jakefile
@@ -193,10 +193,10 @@ namespace('gen', function () {
};
var _formatModelProperties = function (properties) {
- var obj = {'default': {name: 'id', type: 'int'}};
if (!properties) {
- return obj;
+ return {};
}
+ var obj = {'default': {name: 'id', type: 'int'}};
var itemsArr = properties.split('%')
, name

0 comments on commit 9d64a6c

Please sign in to comment.
Something went wrong with that request. Please try again.