hit a snag with rest-client and query params
This commit is contained in:
parent
420168be70
commit
e7ea12f2ae
2 changed files with 20 additions and 0 deletions
|
@ -32,6 +32,11 @@ class CouchRest
|
|||
end
|
||||
end
|
||||
|
||||
def delete doc
|
||||
slug = CGI.escape(doc['_id'])
|
||||
CouchRest.delete "#{@root}/#{slug}?rev=#{doc['_rev']}"
|
||||
end
|
||||
|
||||
def delete!
|
||||
CouchRest.delete @root
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue