mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Rename deprecated CarrierWave methods
This commit is contained in:
parent
86b2bd426a
commit
b5a8f1b8c0
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue