instance method
open_tempfile
Ruby on Rails 6.1.7.10
Since v6.0.6 PrivateSignature
open_tempfile()
No documentation comment.
Source
# File activestorage/lib/active_storage/previewer.rb, line 57
def open_tempfile
tempfile = Tempfile.open("ActiveStorage-", tmpdir)
begin
yield tempfile
ensure
tempfile.close!
end
end
Defined in activestorage/lib/active_storage/previewer.rb line 57
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Previewer