method
open_tempfile_for_blob
v6.0.0 -
Show latest stable
- Class:
ActiveStorage::Downloading
open_tempfile_for_blob()private
No documentation available.
# File activestorage/lib/active_storage/downloading.rb, line 24
def open_tempfile_for_blob
tempfile = Tempfile.open([ "ActiveStorage", blob.filename.extension_with_delimiter ], tempdir)
begin
yield tempfile
ensure
tempfile.close!
end
end