instance method open_tempfile_for_drawing

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v5.2.8.1 Private — implementation detail, not part of the public API

Signature

open_tempfile_for_drawing()

No documentation comment.

Source
# File activestorage/lib/active_storage/previewer.rb, line 54
      def open_tempfile_for_drawing
        tempfile = Tempfile.open("ActiveStorage", tempdir)

        begin
          yield tempfile
        ensure
          tempfile.close!
        end
      end

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

Defined in ActiveStorage::Previewer

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close