1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Avoid duplicating downloads from Google Cloud Storage in memory

References #32703.
This commit is contained in:
George Claghorn 2018-04-29 09:34:14 -04:00
parent 0c54fc460e
commit 7097514d1e

View file

@ -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