Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the option for extension aliases to mime type registration [DHH…
…] Refactored default mime types to use the extension framework instead of just declaring themselves verbosely git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
- Loading branch information
Showing
4 changed files
with
33 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Mime::Type.register "*/*", :all | ||
Mime::Type.register "text/plain", :text | ||
Mime::Type.register "text/html", :html, %w( application/xhtml+xml ), %w( xhtml ) | ||
Mime::Type.register "text/javascript", :js, %w( application/javascript application/x-javascript ) | ||
Mime::Type.register "text/calendar", :ics | ||
Mime::Type.register "text/csv", :csv | ||
Mime::Type.register "application/xml", :xml, %w( text/xml application/x-xml ) | ||
Mime::Type.register "application/rss+xml", :rss | ||
Mime::Type.register "application/atom+xml", :atom | ||
Mime::Type.register "application/x-yaml", :yaml, %w( text/yaml ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters