diff options
author | Ken <ken.ding@mail.com> | 2018-02-21 03:29:04 +1030 |
---|---|---|
committer | Ken <ken.ding@mail.com> | 2018-02-21 03:29:04 +1030 |
commit | ed0a029d53c5a62b49027a0b7192b97a0513787f (patch) | |
tree | b15ca1ab18e1e2a08102a713f6b15d4fac4a0d23 /app/models | |
parent | 0e2ba2326ca3ff499138cabb563a159b48631771 (diff) | |
download | gitlab-ce-ed0a029d53c5a62b49027a0b7192b97a0513787f.tar.gz |
26039 - update github-linguist to 5.3.3 version
26039 - add merge request id
26039 change due to lingust source file updates
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/blob.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/blob.rb b/app/models/blob.rb index 19ad110db58..71c974b4c09 100644 --- a/app/models/blob.rb +++ b/app/models/blob.rb @@ -160,7 +160,7 @@ class Blob < SimpleDelegator if stored_externally? if rich_viewer rich_viewer.binary? - elsif Linguist::Language.find_by_filename(name).any? + elsif Linguist::Language.find_by_extension(name).any? false elsif _mime_type _mime_type.binary? |