diff --git a/lib/couchrest/mixins/extended_attachments.rb b/lib/couchrest/mixins/extended_attachments.rb index 8dbac45..e81670b 100644 --- a/lib/couchrest/mixins/extended_attachments.rb +++ b/lib/couchrest/mixins/extended_attachments.rb @@ -65,10 +65,10 @@ module CouchRest content_type = args[:content_type] ? args[:content_type] : get_mime_type(args[:file]) self['_attachments'][args[:name]] = { 'content_type' => content_type, - 'data' => encode_attachment(args[:file].read) + 'data' => args[:file].read } end end # module ExtendedAttachments end -end \ No newline at end of file +end