added database.bulk_delete as an alias for #bulk_save, added support for Model.by_view_name in ExtendedDoc and bumped the version to 0.13.3
This commit is contained in:
parent
3c01875ce5
commit
c4cce18389
8 changed files with 20 additions and 10 deletions
|
@ -90,9 +90,7 @@ module CouchRest
|
|||
def fetch_attachment(doc, name)
|
||||
# slug = escape_docid(docid)
|
||||
# name = CGI.escape(name)
|
||||
|
||||
uri = uri_for_attachment(doc, name)
|
||||
|
||||
RestClient.get uri
|
||||
# "#{@uri}/#{slug}/#{name}"
|
||||
end
|
||||
|
@ -177,6 +175,7 @@ module CouchRest
|
|||
end
|
||||
CouchRest.post "#{@uri}/_bulk_docs", {:docs => docs}
|
||||
end
|
||||
alias :bulk_delete :bulk_save
|
||||
|
||||
# DELETE the document from CouchDB that has the given <tt>_id</tt> and
|
||||
# <tt>_rev</tt>.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue