fixed the uuid count for the latest version of couchdb

also avoided CONSTANTS warnings, cleaned up the attachment specs, added missing fixtures
This commit is contained in:
Matt Aimonetti 2009-02-25 00:22:11 -08:00
parent fe489f2d38
commit 80317f31a5
13 changed files with 106 additions and 35 deletions

View file

@ -14,7 +14,7 @@ module CouchRest
# reads the data from an attachment
def read_attachment(attachment_name)
Base64.decode64(database.fetch_attachment(self.id, attachment_name))
Base64.decode64(database.fetch_attachment(self, attachment_name))
end
# modifies a file attachment on the current doc