summaryrefslogtreecommitdiff
path: root/app/uploaders/favicon_uploader.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/uploaders/favicon_uploader.rb')
-rw-r--r--app/uploaders/favicon_uploader.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/uploaders/favicon_uploader.rb b/app/uploaders/favicon_uploader.rb
index aa4c78da7a6..09afc63a5aa 100644
--- a/app/uploaders/favicon_uploader.rb
+++ b/app/uploaders/favicon_uploader.rb
@@ -1,4 +1,6 @@
class FaviconUploader < AttachmentUploader
+ EXTENSION_WHITELIST = %w[png ico].freeze
+
include CarrierWave::MiniMagick
version :favicon_main do
@@ -11,7 +13,7 @@ class FaviconUploader < AttachmentUploader
end
def extension_whitelist
- %w[png ico]
+ EXTENSION_WHITELIST
end
private