mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Add missing dependency in Streaming
This commit is contained in:
@@ -2,6 +2,13 @@ module ActionController #:nodoc:
|
||||
# Methods for sending arbitrary data and for streaming files to the browser,
|
||||
# instead of rendering.
|
||||
module Streaming
|
||||
extend ActiveSupport::DependencyModule
|
||||
|
||||
# TODO : Remove the defined? check when new base is the main base
|
||||
if defined?(ActionController::Http)
|
||||
depends_on ActionController::Renderer
|
||||
end
|
||||
|
||||
DEFAULT_SEND_FILE_OPTIONS = {
|
||||
:type => 'application/octet-stream'.freeze,
|
||||
:disposition => 'attachment'.freeze,
|
||||
|
||||
Reference in New Issue
Block a user