schematical/generator-njax — pull request #3 by jeffersoncarpenter (2014-12-12 23:19:16+00:00)
Title: Delete without archive

I made two changes to route.gen.js

First, I deleted the <% if(_model.fields.archiveDate) %> block so that the app.delete route will be created for all models.

Second, I added an else statement near the bottom of the file. If no archiveDate field exists, route.remove is set to a function that just deletes the entity.