Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove obsolete 'move' methods

  • Loading branch information...
commit af6ac7df89bd2ee4efa8ff243760f848b6850072 1 parent aabf097
@candlerb candlerb authored
Showing with 0 additions and 15 deletions.
  1. +0 −9 lib/couchrest/core/document.rb
  2. +0 −6 lib/couchrest/monkeypatches.rb
View
9 lib/couchrest/core/document.rb
@@ -65,15 +65,6 @@ def copy(dest)
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?
View
6 lib/couchrest/monkeypatches.rb
@@ -56,12 +56,6 @@ def self.copy(url, headers={})
:url => url,
:headers => headers)
end
-
- def self.move(url, headers={})
- Request.execute(:method => :move,
- :url => url,
- :headers => headers)
- end
# class Request
#
Please sign in to comment.
Something went wrong with that request. Please try again.