Skip to content
This repository
Browse code

Tagged the 0.9.1 release

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 974ed23034707320efe35ca3a4bd3e538a082bc3 1 parent 0f3c6b1
David Heinemeier Hansson dhh authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 actionpack/lib/action_controller/base.rb
4 actionpack/lib/action_controller/base.rb
@@ -431,7 +431,7 @@ def render_text(text = nil, status = nil, &block) #:doc:
431 431 # http://www.mnot.net/cache_docs/ for an overview of web caching and
432 432 # http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
433 433 # for the Cache-Control header spec.
434   - def send_file(path, options = {})
  434 + def send_file(path, options = {}) #:doc:
435 435 raise MissingFile unless File.file?(path) and File.readable?(path)
436 436
437 437 options[:length] ||= File.size(path)
@@ -483,7 +483,7 @@ def send_file(path, options = {})
483 483 # send_data image.data, :type => image.content_type, :disposition => 'inline'
484 484 #
485 485 # See +send_file+ for more information on HTTP Content-* headers and caching.
486   - def send_data(data, options = {})
  486 + def send_data(data, options = {}) #:doc:
487 487 logger.info "Sending data #{options[:filename]}" unless logger.nil?
488 488 send_file_headers! options.merge(:length => data.size)
489 489 render_text data

0 comments on commit 974ed23

Please sign in to comment.
Something went wrong with that request. Please try again.