Commit 3ca16ec2 authored by Johann Pardanaud's avatar Johann Pardanaud

Fix failing tests introduced in commit 6d580880

parent 6d580880
......@@ -11,10 +11,12 @@ class AvatarUploader < CarrierWave::Uploader::Base
process :cropper
def cropper
if model.instance_of? User
manipulate! do |img|
img.crop "#{model.avatar_crop_size}x#{model.avatar_crop_size}+#{model.avatar_crop_x}+#{model.avatar_crop_y}"
end
end
end
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment