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:
parent
0c54fc460e
commit
7097514d1e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue