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:
parent
fe489f2d38
commit
80317f31a5
13 changed files with 106 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue