class ActiveStorage::Downloader
def open(key, checksum: nil, verify: true, name: "ActiveStorage-", tmpdir: nil)
def open(key, checksum: nil, verify: true, name: "ActiveStorage-", tmpdir: nil) open_tempfile(name, tmpdir) do |file| download key, file verify_integrity_of(file, checksum: checksum) if verify yield file end end