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

Fix failing tests introduced in commit 6d580880

parent 6d580880
...@@ -11,8 +11,10 @@ class AvatarUploader < CarrierWave::Uploader::Base ...@@ -11,8 +11,10 @@ class AvatarUploader < CarrierWave::Uploader::Base
process :cropper process :cropper
def cropper def cropper
manipulate! do |img| if model.instance_of? User
img.crop "#{model.avatar_crop_size}x#{model.avatar_crop_size}+#{model.avatar_crop_x}+#{model.avatar_crop_y}" 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
end end
......
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