From f093b9a600763feee6e3329e52ad6a1ef9f6f881 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 18 Dec 2011 17:46:21 +0000 Subject: [PATCH] Replace @body with @text again... --- app/models/notifier.rb | 2 +- app/views/notifier/diary_comment_notification.text.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %> -- 2.39.5