diff options
author | George Claghorn <george@basecamp.com> | 2018-04-29 09:34:14 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-04-29 09:34:14 -0400 |
commit | 7097514d1e7fdb7e55a9640c9d0646aceced003f (patch) | |
tree | a60d871f1a2621f5e7b26ee7ab5a2dfad06013b8 /activestorage/lib | |
parent | 0c54fc460e52d2b9aa02e1e27a090dbe7ee98829 (diff) | |
download | rails-7097514d1e7fdb7e55a9640c9d0646aceced003f.tar.gz rails-7097514d1e7fdb7e55a9640c9d0646aceced003f.tar.bz2 rails-7097514d1e7fdb7e55a9640c9d0646aceced003f.zip |
Avoid duplicating downloads from Google Cloud Storage in memory
References #32703.
Diffstat (limited to 'activestorage/lib')
-rw-r--r-- | activestorage/lib/active_storage/service/gcs_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |