]> git.openstreetmap.org Git - rails.git/blobdiff - app/mailers/user_mailer.rb
Localisation updates from https://translatewiki.net.
[rails.git] / app / mailers / user_mailer.rb
index ae176c321e6cfcbee787a2c7759a89e3c32e6711..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_to_limit => [50, 50]).processed
-        image.service.download(image.key)
+        avatar.variant(:resize_to_limit => [50, 50]).download
       else
         avatar.blob.download
       end
       else
         avatar.blob.download
       end