Flowdock
method

stream

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: DiskService
stream(key) 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/service/disk_service.rb, line 133
      def stream(key)
        File.open(path_for(key), "rb") do |file|
          while data = file.read(5.megabytes)
            yield data
          end
        end
      rescue Errno::ENOENT
        raise ActiveStorage::FileNotFoundError
      end
Register or log in to add new notes.