diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 02:46:19 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-27 00:32:23 +0400 |
commit | 99d391332fa9a6c11e93bd19295425167661b972 (patch) | |
tree | ec381458fcd3652ffc067c927cf8b912ce0f8e23 /config | |
parent | c058e3903e01b950d19fe8ce86702f24083c8395 (diff) |
Add a "patch" MIME type, and render it like a normal view in Commit#show
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/mime_types.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index 72aca7e441e..3549b8362bb 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -3,3 +3,5 @@ # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf # Mime::Type.register_alias "text/html", :iphone + +Mime::Type.register_alias 'text/plain', :patch |