Fix html interpretation in ReceivedMail

This commit is contained in:
Xavier J 2016-09-01 11:00:06 +02:00
parent b56883db16
commit a48299353e
3 changed files with 3 additions and 3 deletions

View file

@ -0,0 +1 @@
<%= (MailTemplate.replace_tags @dossier.procedure.mail_received.body, @dossier).html_safe %>

View file

@ -1 +0,0 @@
<%= MailTemplate.replace_tags @dossier.procedure.mail_received.body, @dossier %>

View file

@ -37,10 +37,10 @@ Rails.application.configure do
config.assets.raise_runtime_errors = true
config.action_mailer.delivery_method = :test
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
end