Add a square version of the photos for the shedule

This commit is contained in:
Petko Bordjukov 2014-10-12 13:31:48 +03:00
parent f34b03d64b
commit 27677e2d0a
1 changed files with 4 additions and 0 deletions

View File

@ -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