method

open

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: Downloader
open(key, checksum: nil, verify: true, name: "ActiveStorage-", tmpdir: nil) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/downloader.rb, line 11
    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
Register or log in to add new notes.