Permalink
Browse files

status is a number in Rails 3

  • Loading branch information...
1 parent 2a73d00 commit a27f6ec1506e8491bab1d0a062fb62808769ca40 @amatsuda amatsuda committed with vijaydev Oct 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/metal/data_streaming.rb
View
4 actionpack/lib/action_controller/metal/data_streaming.rb
@@ -30,7 +30,7 @@ module DataStreaming
# either a string or a symbol for a registered type register with <tt>Mime::Type.register</tt>, for example :json
# * <tt>:disposition</tt> - specifies whether the file will be shown inline or downloaded.
# Valid values are 'inline' and 'attachment' (default).
- # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to '200 OK'.
+ # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to 200.
# * <tt>:url_based_filename</tt> - set to +true+ if you want the browser guess the filename from
# the URL, which is necessary for i18n filenames on certain browsers
# (setting <tt>:filename</tt> overrides this option).
@@ -86,7 +86,7 @@ def send_file(path, options = {}) #:doc:
# either a string or a symbol for a registered type register with <tt>Mime::Type.register</tt>, for example :json
# * <tt>:disposition</tt> - specifies whether the file will be shown inline or downloaded.
# Valid values are 'inline' and 'attachment' (default).
- # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to '200 OK'.
+ # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to 200.
#
# Generic data download:
#

0 comments on commit a27f6ec

Please sign in to comment.