X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/983e21db2e3ccc5f645f40a5f076d35e2b7897c2..64146b4f3614854e6a0f8430f27261fe0a0ca26c:/app/models/notifier.rb diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 554d1e364..3cc1be1e6 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -181,8 +181,8 @@ class Notifier < ActionMailer::Base end def user_avatar_file_path(user) - image = user && user.image - if image && image.file? + image = user&.image + if image&.file? return image.path(:small) else return Rails.root.join("app", "assets", "images", "users", "images", "small.png")