diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-05-17 19:00:32 +0200 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-06-06 11:28:13 +0200 |
commit | d2256300e559e836884fea57210266dae764f13e (patch) | |
tree | 45d9e0fedf3327c537e819888c27f0927c27a1bf /app/helpers | |
parent | cb564d5831cba9ca8403440a5cbe02d968260da1 (diff) | |
download | gitlab-ce-d2256300e559e836884fea57210266dae764f13e.tar.gz |
hint the allowed image formats on favicon upload
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/favicon_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/favicon_helper.rb b/app/helpers/favicon_helper.rb new file mode 100644 index 00000000000..3a5342a8d9d --- /dev/null +++ b/app/helpers/favicon_helper.rb @@ -0,0 +1,7 @@ +module FaviconHelper + def favicon_extension_whitelist + FaviconUploader::EXTENSION_WHITELIST + .map { |extension| "'.#{extension}'"} + .to_sentence + end +end |