summaryrefslogtreecommitdiff
path: root/app/uploaders
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-21 17:32:18 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-23 09:31:56 -0600
commitb7d8df503cf35b3048b273dc0cadb5ec39aac5e1 (patch)
tree0edbdd9158baa535b12831a3d4860b73894df9ab /app/uploaders
parent3dadf306ddc81183e74b048bc4119796852ed7ea (diff)
downloadgitlab-ce-b7d8df503cf35b3048b273dc0cadb5ec39aac5e1.tar.gz
Enable Style/MutableConstant
Diffstat (limited to 'app/uploaders')
-rw-r--r--app/uploaders/uploader_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/uploaders/uploader_helper.rb b/app/uploaders/uploader_helper.rb
index 35fd1ed23f8..bee311583ea 100644
--- a/app/uploaders/uploader_helper.rb
+++ b/app/uploaders/uploader_helper.rb
@@ -1,15 +1,15 @@
# Extra methods for uploader
module UploaderHelper
- IMAGE_EXT = %w[png jpg jpeg gif bmp tiff]
+ IMAGE_EXT = %w[png jpg jpeg gif bmp tiff].freeze
# We recommend using the .mp4 format over .mov. Videos in .mov format can
# still be used but you really need to make sure they are served with the
# proper MIME type video/mp4 and not video/quicktime or your videos won't play
# on IE >= 9.
# http://archive.sublimevideo.info/20150912/docs.sublimevideo.net/troubleshooting.html
- VIDEO_EXT = %w[mp4 m4v mov webm ogv]
+ VIDEO_EXT = %w[mp4 m4v mov webm ogv].freeze
# These extension types can contain dangerous code and should only be embedded inline with
# proper filtering. They should always be tagged as "Content-Disposition: attachment", not "inline".
- DANGEROUS_EXT = %w[svg]
+ DANGEROUS_EXT = %w[svg].freeze
def image?
extension_match?(IMAGE_EXT)