debian-mirror-gitlab/app/models/concerns/blob_language_from_git_attributes.rb
2020-04-08 18:37:08 +05:30

11 lines
237 B
Ruby

# frozen_string_literal: true
module BlobLanguageFromGitAttributes
extend ActiveSupport::Concern
def language_from_gitattributes
return unless repository&.exists?
repository.gitattribute(path, 'gitlab-language')
end
end