Remove obsolete 'move' methods
This commit is contained in:
parent
aabf097e88
commit
af6ac7df89
|
@ -65,15 +65,6 @@ module CouchRest
|
||||||
result['ok']
|
result['ok']
|
||||||
end
|
end
|
||||||
|
|
||||||
# moves the document to a new id. If the destination id currently exists, a rev must be provided.
|
|
||||||
# <tt>dest</tt> can take one of two forms if overwriting: "id_to_overwrite?rev=revision" or the actual doc
|
|
||||||
# hash with a '_rev' key
|
|
||||||
def move(dest)
|
|
||||||
raise ArgumentError, "doc.database required to copy" unless database
|
|
||||||
result = database.move_doc(self, dest)
|
|
||||||
result['ok']
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns the CouchDB uri for the document
|
# Returns the CouchDB uri for the document
|
||||||
def uri(append_rev = false)
|
def uri(append_rev = false)
|
||||||
return nil if new_document?
|
return nil if new_document?
|
||||||
|
|
|
@ -56,12 +56,6 @@ module RestClient
|
||||||
:url => url,
|
:url => url,
|
||||||
:headers => headers)
|
:headers => headers)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.move(url, headers={})
|
|
||||||
Request.execute(:method => :move,
|
|
||||||
:url => url,
|
|
||||||
:headers => headers)
|
|
||||||
end
|
|
||||||
|
|
||||||
# class Request
|
# class Request
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue