Skip to content

Commit

Permalink
An inline attachment is still an attachment.. Fixes all tests about a…
Browse files Browse the repository at this point in the history
…ttachments.
  • Loading branch information
Nicolas Fouché committed Aug 7, 2009
1 parent e32836d commit af3e54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tmail/attachments.rb
Expand Up @@ -29,7 +29,7 @@ def inline_attachment?(part)
end

def attachment?(part)
part.disposition_is_attachment? || (!part.content_type.nil? && !part.text_content_type?) unless part.multipart? or inline_attachment?(part)
part.disposition_is_attachment? || (!part.content_type.nil? && !part.text_content_type?) unless part.multipart?
end

def attachments
Expand Down

0 comments on commit af3e54e

Please sign in to comment.