Add a square version of the photos for the shedule
This commit is contained in:
parent
f34b03d64b
commit
27677e2d0a
|
@ -39,6 +39,10 @@ class PictureUploader < CarrierWave::Uploader::Base
|
||||||
process :resize_to_fit => [50, 50]
|
process :resize_to_fit => [50, 50]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
version :schedule do
|
||||||
|
process :resize_to_fill => [100, 100]
|
||||||
|
end
|
||||||
|
|
||||||
# Add a white list of extensions which are allowed to be uploaded.
|
# Add a white list of extensions which are allowed to be uploaded.
|
||||||
# For images you might use something like this:
|
# For images you might use something like this:
|
||||||
def extension_white_list
|
def extension_white_list
|
||||||
|
|
Loading…
Reference in New Issue