We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f9251d + a16d555 commit 4585db1Copy full SHA for 4585db1
app/uploaders/avatar_uploader.rb
@@ -31,7 +31,7 @@ def store_dir
31
process resize_to_fit: [178, 65]
32
end
33
34
- def extension_white_list
+ def extension_allowlist
35
%w[jpg jpeg gif png]
36
37
app/uploaders/image_uploader.rb
@@ -34,9 +34,9 @@ def store_dir
process resize_to_fit: [1200, 800]
- # Add a white list of extensions which are allowed to be uploaded.
+ # Add an allow list of extensions which are allowed to be uploaded.
38
# For images you might use something like this:
39
40
%w[jpg jpeg png]
41
42
0 commit comments