From d5cdc8efc14042882b0d9cb55c42c24b8704d164 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Wed, 17 Sep 2014 19:47:07 +0300 Subject: [PATCH] Add a medium version to the picture uploader --- app/uploaders/picture_uploader.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/uploaders/picture_uploader.rb b/app/uploaders/picture_uploader.rb index a8c178c..5278dd1 100644 --- a/app/uploaders/picture_uploader.rb +++ b/app/uploaders/picture_uploader.rb @@ -30,6 +30,11 @@ class PictureUploader < CarrierWave::Uploader::Base # end # Create different versions of your uploaded files: + + version :medium do + process :resize_to_fit => [171, 180] + end + version :thumb do process :resize_to_fit => [50, 50] end