aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-05-21 22:03:52 +0200
committerPratik Naik <pratiknaik@gmail.com>2009-05-22 00:27:08 +0200
commitd2cac9dd0e28b99bd45fd9eaa1d5a6b3dee8fa8f (patch)
tree86a52840a7a747b626509e6cf90906a47c7f31a7 /actionpack
parent9d3d7746702b65ddc09364c260ee4ace4b178281 (diff)
downloadrails-d2cac9dd0e28b99bd45fd9eaa1d5a6b3dee8fa8f.tar.gz
rails-d2cac9dd0e28b99bd45fd9eaa1d5a6b3dee8fa8f.tar.bz2
rails-d2cac9dd0e28b99bd45fd9eaa1d5a6b3dee8fa8f.zip
Add missing dependency in Streaming
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/base/streaming.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/base/streaming.rb b/actionpack/lib/action_controller/base/streaming.rb
index b69b13eea8..5872ba99a2 100644
--- a/actionpack/lib/action_controller/base/streaming.rb
+++ b/actionpack/lib/action_controller/base/streaming.rb
@@ -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,