Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

`geddy scaffold` breaks #259

Closed
mde opened this Issue · 4 comments

2 participants

@larzconwell larzconwell was assigned
@mde
Owner

This happens when you just do geddy scaffold foo without any property definitions.

@larzconwell

Ah figured it out! It's because when you don't include properties it just returns an empty object as per 9d64a6c. The actual error occurs where we are calling for properties['default'] which doesn't exist obviously because it's empty.

@larzconwell

So I'm not sure what we could do, we could provide an empty default like {default: {name: '', type: ''}} and change the templates to ignore empty property info.

@mde
Owner
@larzconwell larzconwell closed this issue from a commit
@larzconwell larzconwell Closes #259, Fix error where no properties at all would throw when co…
…mpiling templates. Now if no default is given it will use the ID property, and when looping will only add the items template if it has content in it's name field
7609a49
@larzconwell larzconwell referenced this issue from a commit
@larzconwell larzconwell Closes #259, Fix error where no properties at all would throw when co…
…mpiling templates. Now if no default is given it will use the ID property, and when looping will only add the items template if it has content in it's name field

Conflicts:

	templates/Jakefile
515a929
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.