got view queries happening correctly
This commit is contained in:
parent
32ffbfe019
commit
19a70ffd7d
7 changed files with 106 additions and 60 deletions
|
@ -144,6 +144,8 @@ module CouchRest
|
|||
# DELETE the document from CouchDB that has the given <tt>_id</tt> and
|
||||
# <tt>_rev</tt>.
|
||||
def delete doc
|
||||
raise ArgumentError, "_id and _rev required for deleting" unless doc['_id'] && doc['_rev']
|
||||
|
||||
slug = CGI.escape(doc['_id'])
|
||||
CouchRest.delete "#{@root}/#{slug}?rev=#{doc['_rev']}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue