Navigation Menu

Skip to content

Commit

Permalink
Revert "FIX: frozen string exception (#7505)"
Browse files Browse the repository at this point in the history
This reverts commit 2938e3f.
  • Loading branch information
jjaffeux committed May 8, 2019
1 parent 24ca074 commit 497c0ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/mailers/user_notifications.rb
Expand Up @@ -549,9 +549,9 @@ def send_notification_email(opts)
context_posts = context_posts.to_a

if context_posts.present?
context += "-- \n*#{I18n.t('user_notifications.previous_discussion')}*\n"
context << "-- \n*#{I18n.t('user_notifications.previous_discussion')}*\n"
context_posts.each do |cp|
context += email_post_markdown(cp, true)
context << email_post_markdown(cp, true)
end
end

Expand All @@ -562,9 +562,9 @@ def send_notification_email(opts)

if opts[:use_invite_template]
invite_template = "user_notifications.invited"
invite_template += "_group" if group_name
invite_template << "_group" if group_name

invite_template +=
invite_template <<
if post.topic.private_message?
"_to_private_message_body"
else
Expand Down

0 comments on commit 497c0ba

Please sign in to comment.