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 PrivateSignature
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