From db8b944e685f541d12ef9092450fd2ce16f183d7 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Thu, 12 May 2016 15:25:47 +0200 Subject: [PATCH] add richtext-content style to emails --- app/models/channel/email_build.rb | 105 ++++++++++++++++++++---------- 1 file changed, 71 insertions(+), 34 deletions(-) diff --git a/app/models/channel/email_build.rb b/app/models/channel/email_build.rb index e578bdf84..a7a0fb42b 100644 --- a/app/models/channel/email_build.rb +++ b/app/models/channel/email_build.rb @@ -115,7 +115,7 @@ module Channel::EmailBuild content_disposition: attachment.preferences['Content-Disposition'] || 'attachment', content_type: attachment.preferences['Content-Type'], mime_type: attachment.preferences['Mime-Type'], - content: attachment.content, + content: attachment.content } end end @@ -146,39 +146,76 @@ Check if string is a complete html document. If not, add head and css styles. #{html}