diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-01-12 20:54:04 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-01-12 20:54:04 +0000 |
commit | dd6826eba34769d2af45d45ef91e359cd64eeb00 (patch) | |
tree | 0b8b47762e57412588fca7951266fd6baf3fc2f4 /actionpack/lib | |
parent | 88e02f6e56a4c3cb521936c41b1bb1129b9147d3 (diff) | |
download | rails-dd6826eba34769d2af45d45ef91e359cd64eeb00.tar.gz rails-dd6826eba34769d2af45d45ef91e359cd64eeb00.tar.bz2 rails-dd6826eba34769d2af45d45ef91e359cd64eeb00.zip |
Recognize the .txt extension as Mime::TEXT [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/mime_types.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/mime_types.rb b/actionpack/lib/action_controller/mime_types.rb index bc458d85fa..7ddde23073 100644 --- a/actionpack/lib/action_controller/mime_types.rb +++ b/actionpack/lib/action_controller/mime_types.rb @@ -1,5 +1,5 @@ Mime::Type.register "*/*", :all -Mime::Type.register "text/plain", :text +Mime::Type.register "text/plain", :text, [], %w(txt) 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 |