Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-12-10 15:59:17 +0300
committerRémy Coutable <remy@rymai.me>2018-12-10 15:59:33 +0300
commitd78272a13b50e912b1ac946da8eec2e75bc6eb41 (patch)
tree7786eb58b9c8ed4859a4cf5191a70733a8fdfddd /app/mailers/notify.rb
parent5a727a4d36674d02369f4ef8ed257ea9d17570e7 (diff)
Fix a frozen string error in app/mailers/notify.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/mailers/notify.rb')
-rw-r--r--app/mailers/notify.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 662f3e00047..88ad4c3e893 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -166,7 +166,7 @@ class Notify < BaseMailer
headers['In-Reply-To'] = message_id(model)
headers['References'] = [message_id(model)]
- headers[:subject]&.prepend('Re: ')
+ headers[:subject] = "Re: #{headers[:subject]}" if headers[:subject]
mail_thread(model, headers)
end