Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

`render :text => proc { ... }` is no longer supported.

  • Loading branch information...
commit b1047888fb4ddf9ba2cbdd4cd596ad4f1aca8645 1 parent 6644675
John Firebaugh authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 actionpack/lib/action_controller/metal/streaming.rb
View
4 actionpack/lib/action_controller/metal/streaming.rb
@@ -101,10 +101,6 @@ def send_file(path, options = {}) #:doc:
# 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)
Please sign in to comment.
Something went wrong with that request. Please try again.