lib/couch/generators/view/templates/map.js in couch-0.0.4 vs lib/couch/generators/view/templates/map.js in couch-0.1.0
- old
+ new
@@ -1,5 +1,5 @@
function(doc) {
if(doc.type && doc.type == '<%= model_name %>') {
- emit(doc._id, null);
+ emit(doc._id, <%= mydoc %>);
}
}