aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/foi_attachment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/foi_attachment.rb b/app/models/foi_attachment.rb
index eb6e27dd4..978e11a17 100644
--- a/app/models/foi_attachment.rb
+++ b/app/models/foi_attachment.rb
@@ -71,7 +71,7 @@ class FoiAttachment < ActiveRecord::Base
begin
binary_data = File.open(self.filepath, "rb" ){ |file| file.read }
if text_type?
- @cached_body = convert_string_to_utf8(binary_data, 'UTF-8')
+ @cached_body = convert_string_to_utf8(binary_data, 'UTF-8').string
else
@cached_body = binary_data
end