method

open_tempfile

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Downloader
open_tempfile(name, tmpdir = nil) 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/downloader.rb, line 20
      def open_tempfile(name, tmpdir = nil)
        file = Tempfile.open(name, tmpdir)

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