method

open_tempfile_for_blob

rails latest stable - Class: ActiveStorage::Downloading

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

open_tempfile_for_blob()
private

No documentation available.

# 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