Skip to content

Commit

Permalink
Fix modifying frozen strings error take 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed May 13, 2019
1 parent 9b75320 commit b584e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/mailers/user_notifications.rb
Expand Up @@ -360,7 +360,7 @@ def user_locale(user)
end

def email_post_markdown(post, add_posted_by = false)
result = "#{post.raw}\n\n"
result = +"#{post.raw}\n\n"
if add_posted_by
result << "#{I18n.t('user_notifications.posted_by', username: post.username, post_date: post.created_at.strftime("%m/%d/%Y"))}\n\n"
end
Expand Down Expand Up @@ -551,7 +551,7 @@ 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)
end
Expand Down

0 comments on commit b584e30

Please sign in to comment.