removed CouchRest::Model, added more specs and fixed a bug with casted CR::ExtendedDocument

This commit is contained in:
Matt Aimonetti 2009-02-24 22:51:13 -08:00
parent 72542dc876
commit fe489f2d38
15 changed files with 740 additions and 1528 deletions

View file

@ -279,7 +279,7 @@ module CouchRest
private
def uri_for_attachment doc, name
def uri_for_attachment(doc, name)
if doc.is_a?(String)
puts "CouchRest::Database#fetch_attachment will eventually require a doc as the first argument, not a doc.id"
docid = doc