instance method
download_blob_to_tempfile
Ruby on Rails 6.0.6
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 28
def download_blob_to_tempfile(&block) #:doc:
blob.open tmpdir: tmpdir, &block
end
Defined in activestorage/lib/active_storage/previewer.rb line 28
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Previewer