instance method download_blob_to_tempfile

Ruby on Rails 7.1.6

Since v6.0.6 Private

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

download_blob_to_tempfile(&block)

Downloads the blob to a tempfile on disk. Yields the tempfile.

Parameters

block block
Source
# File activestorage/lib/active_storage/previewer.rb, line 31
      def download_blob_to_tempfile(&block) # :doc:
        blob.open tmpdir: tmpdir, &block
      end

Defined in activestorage/lib/active_storage/previewer.rb line 31 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::Previewer

Type at least 2 characters to search.

↑↓ navigate · open · esc close