From 27677e2d0a7908a0d3f9919c62ed04716edfe1eb Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 12 Oct 2014 13:31:48 +0300 Subject: [PATCH] Add a square version of the photos for the shedule --- app/uploaders/picture_uploader.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/uploaders/picture_uploader.rb b/app/uploaders/picture_uploader.rb index 5278dd1..0f60f9b 100644 --- a/app/uploaders/picture_uploader.rb +++ b/app/uploaders/picture_uploader.rb @@ -39,6 +39,10 @@ class PictureUploader < CarrierWave::Uploader::Base process :resize_to_fit => [50, 50] end + version :schedule do + process :resize_to_fill => [100, 100] + end + # Add a white list of extensions which are allowed to be uploaded. # For images you might use something like this: def extension_white_list