[issue #565] Fixed bug in mailer.

This commit is contained in:
George Vinogradov 2012-07-20 20:56:47 +04:00
parent c37866d5e6
commit 0d9a32a1c0
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class FeedbackMailer < ActionMailer::Base
res << subject
res << affix(FBM_CONFIG['subject_postfixes'])
# WOODOO magic. Change all space sequences to one space than remove trailing spaces.
res.gsub(/\s+/, ' ').gsub(/^\s|\s$/, '')
res = res.gsub(/\s+/, ' ').strip!
res
end