aboutsummaryrefslogtreecommitdiffstats
path: root/lib/attachment_to_html
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-06-11 17:27:49 +0100
committerLouise Crow <louise.crow@gmail.com>2015-06-22 17:43:22 +0100
commit19c5e549b8529b10faa36307efceab207afd3224 (patch)
treee2823f98304cfb41d583e07b07b5d1f842387c3b /lib/attachment_to_html
parent3d8f0cc6b70b55aad20ab4d86642f0e6d605c921 (diff)
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?
Diffstat (limited to 'lib/attachment_to_html')
-rw-r--r--lib/attachment_to_html/adapter.rb2
1 files changed, 1 insertions, 1 deletions
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