Remove obsolete 'move' methods
This commit is contained in:
parent
aabf097e88
commit
af6ac7df89
|
@ -65,15 +65,6 @@ module CouchRest
|
|||
result['ok']
|
||||
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
|
||||
def uri(append_rev = false)
|
||||
return nil if new_document?
|
||||
|
|
|
@ -57,12 +57,6 @@ module RestClient
|
|||
:headers => headers)
|
||||
end
|
||||
|
||||
def self.move(url, headers={})
|
||||
Request.execute(:method => :move,
|
||||
:url => url,
|
||||
:headers => headers)
|
||||
end
|
||||
|
||||
# class Request
|
||||
#
|
||||
# def establish_connection(uri)
|
||||
|
|
Loading…
Reference in a new issue