diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-25 23:38:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-25 23:38:48 +0000 |
commit | 4bd80f110d41a02ddc76212a92b5367541e6bce7 (patch) | |
tree | 63c5428eb51ef09777ebd74ac8628664673a6914 /actionmailer/lib/action_mailer | |
parent | 5e99422d61cd690f24b10f540dafe218092283a3 (diff) | |
download | rails-4bd80f110d41a02ddc76212a92b5367541e6bce7.tar.gz rails-4bd80f110d41a02ddc76212a92b5367541e6bce7.tar.bz2 rails-4bd80f110d41a02ddc76212a92b5367541e6bce7.zip |
Make TMail::Mail#has_attachments? use logic from #attachment? (closes #3815) [devslashnull@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/vendor/tmail/attachments.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/vendor/tmail/attachments.rb b/actionmailer/lib/action_mailer/vendor/tmail/attachments.rb index abadd20a8a..4d8d106ad8 100644 --- a/actionmailer/lib/action_mailer/vendor/tmail/attachments.rb +++ b/actionmailer/lib/action_mailer/vendor/tmail/attachments.rb @@ -7,7 +7,7 @@ module TMail class Mail def has_attachments? - multipart? && parts.any? { |part| part.header["content-type"].main_type != "text" } + multipart? && parts.any? { |part| attachment?(part) } end def attachment?(part) |