From: Tom Hughes Date: Sun, 18 Dec 2011 17:46:21 +0000 (+0000) Subject: Replace @body with @text again... X-Git-Tag: live~5913 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/f093b9a600763feee6e3329e52ad6a1ef9f6f881?ds=inline Replace @body with @text again... --- diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 1223d54b1..343c3db22 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -81,7 +81,7 @@ class Notifier < ActionMailer::Base @locale = comment.diary_entry.user.preferred_language_from(I18n.available_locales) @to_user = comment.diary_entry.user.display_name @from_user = comment.user.display_name - @body = comment.body + @text = comment.body @title = comment.diary_entry.title @readurl = url_for(:host => SERVER_URL, :controller => "diary_entry", diff --git a/app/views/notifier/diary_comment_notification.text.erb b/app/views/notifier/diary_comment_notification.text.erb index efdd620e6..193e10de9 100644 --- a/app/views/notifier/diary_comment_notification.text.erb +++ b/app/views/notifier/diary_comment_notification.text.erb @@ -3,7 +3,7 @@ <%= t'notifier.diary_comment_notification.header', :from_user => @from_user, :subject => @title %> == -<%= @body %> +<%= raw @text %> == <%= t'notifier.diary_comment_notification.footer', :readurl => @readurl, :commenturl => @commenturl, :replyurl => @replyurl %>