debian-mirror-gitlab/app/helpers/abuse_reports_helper.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
237 B
Ruby
Raw Normal View History

2023-06-20 00:43:36 +05:30
# 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