]> git.openstreetmap.org Git - rails.git/commitdiff
Looks like @body is special somehow so use @text instead
authorTom Hughes <tom@compton.nu>
Tue, 15 Nov 2011 14:49:38 +0000 (14:49 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 15 Nov 2011 14:49:38 +0000 (14:49 +0000)
app/models/notifier.rb
app/views/notifier/message_notification.text.erb

index 03923e9e71e2db8525971e3a55ffba713f679f77..2b6574a977aafd3926602af9e841d58bdaa166b0 100644 (file)
@@ -62,7 +62,7 @@ class Notifier < ActionMailer::Base
     @locale = message.recipient.preferred_language_from(I18n.available_locales)
     @to_user = message.recipient.display_name
     @from_user = message.sender.display_name
-    @body = message.body
+    @text = message.body
     @title = message.title
     @readurl = url_for(:host => SERVER_URL,
                        :controller => "message", :action => "read",
index 8c5fce74e7c060a8647cf352ba9bdfac27e5db61..c91c68be683e67e402e82457e161eaf292945458 100644 (file)
@@ -3,7 +3,7 @@
 <%= t'notifier.message_notification.header', :from_user => @from_user, :subject => @title %>
 
 ==
-<%= @body %>
+<%= @text %>
 ==
 
 <%= t'notifier.message_notification.footer1', :readurl => @readurl %>