parent
f3219ada14
commit
5432cb6db5
1 changed files with 2 additions and 1 deletions
|
@ -192,7 +192,8 @@ class Notifier < ApplicationMailer
|
|||
def user_avatar_file(user)
|
||||
avatar = user&.avatar
|
||||
if avatar&.attached?
|
||||
avatar.variant(:resize => "50x50>").blob.download
|
||||
image = avatar.variant(:resize => "50x50>").processed
|
||||
image.service.download(image.key)
|
||||
else
|
||||
File.read(Rails.root.join("app/assets/images/avatar_small.png"))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue