]> git.openstreetmap.org Git - rails.git/blobdiff - app/mailers/user_mailer.rb
Changed directions close button to Bootstrap
[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?
     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
       else
         avatar.blob.download
       end