This method is deprecated or moved on the latest stable version.
The last existing version (v4.2.9) is shown here.
each()
public
Stream the file’s contents if
Rack::Sendfile isn’t present.
# File actionpack/lib/action_controller/metal/data_streaming.rb, line 89
def each
File.open(to_path, 'rb') do |file|
while chunk = file.read(16384)
yield chunk
end
end
end