fix ArgumentError: wrong number of arguments (2 for 1)

This commit is contained in:
Alexander Machehin 2014-09-12 16:47:39 +06:00
parent e93b8a8c00
commit 49cbad5b6e
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ module Grit
if mime_type == 'text/rpm-spec'
@raw_mime_type = 'text/x-rpm-spec'
else
@raw_mime_type = Linguist::Language.detect(name, data).try(:lexer).try(:mimetypes).try(:first)
@raw_mime_type = Linguist::Language.detect(self).try(:lexer).try(:mimetypes).try(:first)
@raw_mime_type ||= DEFAULT_MIME_TYPE
@raw_mime_type.gsub!('application', 'text')
@raw_mime_type