This project is archived and is in readonly mode.
Allow use of symbols for :type option of ActionController::Streaming#send_file/#send_data
Reported by Adam Cigánek | October 17th, 2008 @ 09:55 PM | in 2.x
Attached patch adds support for symbols for :type options of send_file and send_data. Instead of this:
@@@ruby send_file("/foo/bar/whatever.png", :type => "image/png")
you can now do this:
@@@ruby
send_file("/foo/bar/whatever.png", :type => :png)
You can use whatever symbol registered through Mime::Type.register. Test is included.
Comments and changes to this ticket
-
Adam Cigánek October 17th, 2008 @ 09:58 PM
Sorry, the formatting got screwed up:
send_file("/foo/bar/whatever.png", :type => "image/png")
you can now do this:
send_file("/foo/bar/whatever.png", :type => :png)
-
Repository December 21st, 2008 @ 07:05 PM
- State changed from new to resolved
(from [fcd58dc27a99085b161f2463988d4ee373d44ec6]) Allow use of symbols for :type option of ActionController::Streaming#send_file/#send_data [#1232 state:resolved]
Signed-off-by: Frederick Cheung frederick.cheung@gmail.com http://github.com/rails/rails/co...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 1232 Allow use of symbols for :type option of ActionController::Streaming#send_file/#send_data (from [fcd58dc27a99085b161f2463988d4ee373d44ec6]) Allow u...