[refs #113] Add json to mime types list

This commit is contained in:
konstantin.grabar 2012-01-20 22:40:00 +04:00
parent 5d93d40693
commit f46b179486
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ module GitHelper
def choose_render_way(blob) def choose_render_way(blob)
return :image if blob.mime_type.match(/image/) return :image if blob.mime_type.match(/image/)
return :text if blob.mime_type.match(/text|xml/) return :text if blob.mime_type.match(/text|xml|json/)
:binary :binary
end end
end end