instance method
download_blob_to_tempfile
Ruby on Rails 7.0.10
Since v6.0.6 PrivateSignature
download_blob_to_tempfile(&block)
Downloads the blob to a tempfile on disk. Yields the tempfile.
Parameters
-
blockblock
Source
# File activestorage/lib/active_storage/previewer.rb, line 29
def download_blob_to_tempfile(&block) # :doc:
blob.open tmpdir: tmpdir, &block
end
Defined in activestorage/lib/active_storage/previewer.rb line 29
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Previewer