instance method
download_blob_to_tempfile
Ruby on Rails 5.2.8.1
Since v5.2.8.1 Last seen in v6.0.6 PrivateAvailable in: v5.2.8.1 v6.0.6
Signature
download_blob_to_tempfile()
Opens a new tempfile in #tempdir and copies blob data into it. Yields the tempfile.
Source
# File activestorage/lib/active_storage/downloading.rb, line 9
def download_blob_to_tempfile #:doc:
open_tempfile_for_blob do |file|
download_blob_to file
yield file
end
end
Defined in activestorage/lib/active_storage/downloading.rb line 9
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Downloading