summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/couch-doc-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/couch-doc-update b/files/couch-doc-update
index fea6456..df216db 100644
--- a/files/couch-doc-update
+++ b/files/couch-doc-update
@@ -116,7 +116,7 @@ def get_document(db, doc_id)
end
def update_document(db, doc, data)
- doc.reject! {|k,v| !k.start_with? '_'}
+ doc.reject! {|k,v| !["_id", "_rev"].include? k}
doc.merge! data
db.save_doc(doc)
end