method

download

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Downloader
download(key, file) private

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 30
      def download(key, file)
        file.binmode
        service.download(key) { |chunk| file.write(chunk) }
        file.flush
        file.rewind
      end
Register or log in to add new notes.