README.md in rails-uploader-0.5.2 vs README.md in rails-uploader-0.5.3

- old
+ new

@@ -39,9 +39,26 @@ def thumb_url url(:thumb) end end + +class PictureUploader < CarrierWave::Uploader::Base + include CarrierWave::MiniMagick + + # Choose what kind of storage to use for this uploader: + storage :file + + EXTENSION_WHITELIST = %w[jpg jpeg gif png].freeze + + version :thumb do + process resize_to_fill: [100, 100] + end + + def extension_whitelist + EXTENSION_WHITELIST + end +end ``` For example user has one picture: ``` ruby