class ActiveStorage::Previewer

def download_blob_to_tempfile(&block) # :doc:

:doc:
Downloads the blob to a tempfile on disk. Yields the tempfile.
def download_blob_to_tempfile(&block) # :doc:
  blob.open tmpdir: tmpdir, &block
end