aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-01-11 12:02:54 +0000
committerSeb Bacon <seb.bacon@gmail.com>2012-01-11 12:02:54 +0000
commitaf462d8b97021a422e684262c009fa173530d279 (patch)
tree955a6f2148dfcb69d8950befa6fd17e9bb0d1b91
parentbe0c61f6c75bcad598450b1047e52d3f2db44777 (diff)
Attempt to fix #333 ('attempt' because hard to test!)
-rw-r--r--app/models/foi_attachment.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/foi_attachment.rb b/app/models/foi_attachment.rb
index a14e0b553..dc55ff5f6 100644
--- a/app/models/foi_attachment.rb
+++ b/app/models/foi_attachment.rb
@@ -59,6 +59,7 @@ class FoiAttachment < ActiveRecord::Base
file.write d
}
update_display_size!
+ @cached_body = d
end
def body