instance method
open_tempfile_for_blob
Ruby on Rails 5.2.8.1
Since v5.2.8.1 Last seen in v6.0.6 PrivateAvailable in: v5.2.8.1 v6.0.6
Signature
open_tempfile_for_blob()
No documentation comment.
Source
# File activestorage/lib/active_storage/downloading.rb, line 16
def open_tempfile_for_blob
tempfile = Tempfile.open([ "ActiveStorage", blob.filename.extension_with_delimiter ], tempdir)
begin
yield tempfile
ensure
tempfile.close!
end
end
Defined in activestorage/lib/active_storage/downloading.rb line 16
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Downloading