Merge pull request #2846 from hennevogel/refactoring/wording-carrierwave
Rename deprecated CarrierWave methods
This commit is contained in:
commit
1a062c9d5d
1 changed files with 2 additions and 4 deletions
|
|
@ -84,13 +84,11 @@ class PictureUploader < CarrierWave::Uploader::Base
|
||||||
process resize_and_pad: [120, 70]
|
process resize_and_pad: [120, 70]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add a white list of extensions which are allowed to be uploaded.
|
def extension_allowlist
|
||||||
# For images you might use something like this:
|
|
||||||
def extension_whitelist
|
|
||||||
%w(jpg jpeg gif png)
|
%w(jpg jpeg gif png)
|
||||||
end
|
end
|
||||||
|
|
||||||
def content_type_whitelist
|
def content_type_allowlist
|
||||||
/image\//
|
/image\//
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue