From 19c5e549b8529b10faa36307efceab207afd3224 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Thu, 11 Jun 2015 17:27:49 +0100 Subject: Add body_as_text, default_body. Main intent here is to be more explicit about what form you're getting the attachment body in - valid UTF-8 or binary, and has it been cleaned up in order to be UTF-8? --- lib/attachment_to_html/adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/attachment_to_html') diff --git a/lib/attachment_to_html/adapter.rb b/lib/attachment_to_html/adapter.rb index 058fb2a01..ac8a16411 100644 --- a/lib/attachment_to_html/adapter.rb +++ b/lib/attachment_to_html/adapter.rb @@ -61,7 +61,7 @@ module AttachmentToHTML end def attachment_body - @attachment_body ||= attachment.body + @attachment_body ||= attachment.default_body end end end -- cgit v1.2.3