aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/foi_attachment.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-04-02 17:43:04 +0100
committerGareth Rees <gareth@mysociety.org>2014-04-07 17:14:07 +0100
commit9f283e2e48e859d1ba6a31baa783feb177cccb17 (patch)
treef106109fc9699d534e8d57b03bd7ff040bb5302c /app/models/foi_attachment.rb
parent70ef2f4fe5a36fc95a85bed18971cc7c80d54640 (diff)
Update gubbins to call AttachmentToHTML
Diffstat (limited to 'app/models/foi_attachment.rb')
-rw-r--r--app/models/foi_attachment.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/foi_attachment.rb b/app/models/foi_attachment.rb
index 6f46c6785..6f198249a 100644
--- a/app/models/foi_attachment.rb
+++ b/app/models/foi_attachment.rb
@@ -294,7 +294,8 @@ class FoiAttachment < ActiveRecord::Base
# For "View as HTML" of attachment
def body_as_html(dir, opts = {})
attachment_url = opts.fetch(:attachment_url, nil)
- AttachmentToHTML.to_html(self, :tmpdir => dir, :attachment_url => attachment_url)
+ to_html_opts = opts.merge(:tmpdir => dir, :attachment_url => attachment_url)
+ AttachmentToHTML.to_html(self, to_html_opts)
end
end