]> git.openstreetmap.org Git - rails.git/blobdiff - app/mailers/user_mailer.rb
Bump image_processing from 1.12.1 to 1.12.2
[rails.git] / app / mailers / user_mailer.rb
index 0664b8475ed866cc6244ac664ae76a45aa49cb60..7bbe65ec591d471ccf297878dffdd5b0a027a0c6 100644 (file)
@@ -194,8 +194,7 @@ class UserMailer < ApplicationMailer
     avatar = user&.avatar
     if avatar&.attached?
       if avatar.variable?
-        image = avatar.variant(:resize => "50x50>").processed
-        image.service.download(image.key)
+        avatar.variant(:resize_to_limit => [50, 50]).download
       else
         avatar.blob.download
       end