]> git.openstreetmap.org Git - rails.git/blobdiff - app/mailers/user_mailer.rb
Add tests for OAuth2
[rails.git] / app / mailers / user_mailer.rb
index 0664b8475ed866cc6244ac664ae76a45aa49cb60..ae176c321e6cfcbee787a2c7759a89e3c32e6711 100644 (file)
@@ -194,7 +194,7 @@ class UserMailer < ApplicationMailer
     avatar = user&.avatar
     if avatar&.attached?
       if avatar.variable?
-        image = avatar.variant(:resize => "50x50>").processed
+        image = avatar.variant(:resize_to_limit => [50, 50]).processed
         image.service.download(image.key)
       else
         avatar.blob.download