# File lib/couchrest/model/extended_attachments.rb, line 46 def has_attachment?(attachment_name) !!(attachments && attachments[attachment_name] && !attachments[attachment_name].empty?) end