Skip to content

Commit

Permalink
Avoid duplicating downloads from Google Cloud Storage in memory
Browse files Browse the repository at this point in the history
References #32703.
  • Loading branch information
georgeclaghorn committed Apr 29, 2018
1 parent 0e799af commit 65bb8e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activestorage/lib/active_storage/service/gcs_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def download(key)
io.rewind

if block_given?
yield io.read
yield io.string
else
io.read
io.string
end
end
end
Expand Down

0 comments on commit 65bb8e1

Please sign in to comment.