debian-mirror-gitlab/app/helpers/abuse_reports_helper.rb
2023-06-20 00:43:36 +05:30

9 lines
237 B
Ruby

# frozen_string_literal: true
module AbuseReportsHelper
def valid_image_mimetypes
Gitlab::FileTypeDetection::SAFE_IMAGE_EXT
.map { |extension| "image/#{extension}" }
.to_sentence(last_word_connector: ' or ')
end
end