aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorJohn Firebaugh <john_firebaugh@bigfix.com>2010-10-04 11:14:42 -0700
committerJohn Firebaugh <john_firebaugh@bigfix.com>2010-10-04 11:14:42 -0700
commitb1047888fb4ddf9ba2cbdd4cd596ad4f1aca8645 (patch)
tree5831e76c22c1c1f6469f43d917206e155c3196ae /actionpack/lib/action_controller
parent6644675831a5a87c77f66697124d95ab37202509 (diff)
downloadrails-b1047888fb4ddf9ba2cbdd4cd596ad4f1aca8645.tar.gz
rails-b1047888fb4ddf9ba2cbdd4cd596ad4f1aca8645.tar.bz2
rails-b1047888fb4ddf9ba2cbdd4cd596ad4f1aca8645.zip
`render :text => proc { ... }` is no longer supported.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/streaming.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/streaming.rb b/actionpack/lib/action_controller/metal/streaming.rb
index 2013da3adb..312dc8eb3e 100644
--- a/actionpack/lib/action_controller/metal/streaming.rb
+++ b/actionpack/lib/action_controller/metal/streaming.rb
@@ -101,10 +101,6 @@ module ActionController #:nodoc:
# send_data image.data, :type => image.content_type, :disposition => 'inline'
#
# See +send_file+ for more information on HTTP Content-* headers and caching.
- #
- # <b>Tip:</b> if you want to stream large amounts of on-the-fly generated
- # data to the browser, then use <tt>render :text => proc { ... }</tt>
- # instead. See ActionController::Base#render for more information.
def send_data(data, options = {}) #:doc:
send_file_headers! options.dup
render options.slice(:status, :content_type).merge(:text => data)