From 7097514d1e7fdb7e55a9640c9d0646aceced003f Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Sun, 29 Apr 2018 09:34:14 -0400 Subject: Avoid duplicating downloads from Google Cloud Storage in memory References #32703. --- activestorage/lib/active_storage/service/gcs_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activestorage/lib') diff --git a/activestorage/lib/active_storage/service/gcs_service.rb b/activestorage/lib/active_storage/service/gcs_service.rb index 16a0765fc5..7a1839a1aa 100644 --- a/activestorage/lib/active_storage/service/gcs_service.rb +++ b/activestorage/lib/active_storage/service/gcs_service.rb @@ -39,9 +39,9 @@ module ActiveStorage io.rewind if block_given? - yield io.read + yield io.string else - io.read + io.string end end end -- cgit v1.2.3