method

open_tempfile

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Previewer
open_tempfile() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/previewer.rb, line 59
      def open_tempfile
        tempfile = Tempfile.open("ActiveStorage-", tmpdir)

        begin
          yield tempfile
        ensure
          tempfile.close!
        end
      end
Register or log in to add new notes.