instance method open_tempfile_for_blob

Ruby on Rails 6.0.6

Since v5.2.8.1 Last seen in v6.0.6 Private

Available in: v5.2.8.1 v6.0.6

Signature

open_tempfile_for_blob()

No documentation comment.

Source
# File activestorage/lib/active_storage/downloading.rb, line 24
      def open_tempfile_for_blob
        tempfile = Tempfile.open([ "ActiveStorage", blob.filename.extension_with_delimiter ], tempdir)

        begin
          yield tempfile
        ensure
          tempfile.close!
        end
      end

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

Defined in ActiveStorage::Downloading

Type at least 2 characters to search.

↑↓ navigate · open · esc close