diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-04-12 09:52:41 -0700 |
---|---|---|
committer | Erich Menge <erich.menge@me.com> | 2012-08-15 08:43:49 -0500 |
commit | bccc35b13e4782bde4a8def9b52c21f1eda0b4b1 (patch) | |
tree | 7edcb85799b6a651d04979480e67997d1a12f2bd /actionpack/lib/action_view.rb | |
parent | 786713a3abc375fab4d5c2f6f62a878c2ab51022 (diff) | |
download | rails-bccc35b13e4782bde4a8def9b52c21f1eda0b4b1.tar.gz rails-bccc35b13e4782bde4a8def9b52c21f1eda0b4b1.tar.bz2 rails-bccc35b13e4782bde4a8def9b52c21f1eda0b4b1.zip |
Backport 5c51cd0: #send_file leans on Rack::Sendfile to X-Accel-Redirect the file's path, so opening the file to set the response body is wasteful. Set a FileBody wrapper instead that responds to to_path and streams the file if needed.
Diffstat (limited to 'actionpack/lib/action_view.rb')
0 files changed, 0 insertions, 0 deletions