DEV: Remove warnings on console (#14608)

We don't use oxipng from the image_optim gem and rake tasks complained that constants have already been initialized.
This commit is contained in:
Gerhard Schlager 2021-10-14 23:17:47 +02:00 committed by GitHub
parent 2a7280ac48
commit a85c876dbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -127,7 +127,8 @@ class FileHelper
jpegrecompress: false,
# Skip looking for gifsicle, svgo binaries
gifsicle: false,
svgo: false
svgo: false,
oxipng: false
)
end
end

View File

@ -3,8 +3,8 @@
module FileStore
class BaseStore
UPLOAD_PATH_REGEX = %r|/(original/\d+X/.*)|
OPTIMIZED_IMAGE_PATH_REGEX = %r|/(optimized/\d+X/.*)|
UPLOAD_PATH_REGEX ||= %r|/(original/\d+X/.*)|
OPTIMIZED_IMAGE_PATH_REGEX ||= %r|/(optimized/\d+X/.*)|
TEMPORARY_UPLOAD_PREFIX ||= "temp/"
def store_upload(file, upload, content_type = nil)