Rename deprecated CarrierWave methods

This commit is contained in:
Henne Vogelsang 2021-08-18 13:08:28 +02:00
parent 86b2bd426a
commit b5a8f1b8c0
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -84,13 +84,11 @@ class PictureUploader < CarrierWave::Uploader::Base
process resize_and_pad: [120, 70]
end
# Add a white list of extensions which are allowed to be uploaded.
# For images you might use something like this:
def extension_whitelist
def extension_allowlist
%w(jpg jpeg gif png)
end
def content_type_whitelist
def content_type_allowlist
/image\//
end