aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/foi_attachment.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/foi_attachment.rb b/app/models/foi_attachment.rb
index 99603ff69..6f46c6785 100644
--- a/app/models/foi_attachment.rb
+++ b/app/models/foi_attachment.rb
@@ -294,8 +294,7 @@ class FoiAttachment < ActiveRecord::Base
# For "View as HTML" of attachment
def body_as_html(dir, opts = {})
attachment_url = opts.fetch(:attachment_url, nil)
- html = AttachmentToHTML.to_html(self, :tmpdir => dir, :attachment_url => attachment_url)
- html.to_s
+ AttachmentToHTML.to_html(self, :tmpdir => dir, :attachment_url => attachment_url)
end
end