Skip to content

Commit beab572

Browse files
committed
arkhitech#46 Support HTML in Mails
1 parent 9938bd7 commit beab572

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/models/mention_mailer.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
class MentionMailer < ActionMailer::Base
22
layout 'mailer'
33
default from: Setting.mail_from
4+
5+
helper :application
6+
include ApplicationHelper
7+
48
def self.default_url_options
59
Mailer.default_url_options
610
end

app/views/mention_mailer/notify_mentioning.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
<br /><br />
88

9-
<p><%= @journal.notes %></p>
9+
<%= textilizable(@journal, :notes, {:headings => false, :only_path => false}) -%>

0 commit comments

Comments
 (0)