Fixed that MailHandler#plain_text_body was returning nil if there was nothing to strip (#2814).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2520 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-02-23 17:35:16 +00:00
parent 0101e609f7
commit 0f68334f0b
1 changed files with 1 additions and 0 deletions

View File

@ -235,6 +235,7 @@ class MailHandler < ActionMailer::Base
@plain_text_body = plain_text_part.body.to_s
end
@plain_text_body.strip!
@plain_text_body
end