aboutsummaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2021-02-11 20:40:00 +0100
committerhellekin <hellekin@cepheide.org>2021-02-11 20:40:00 +0100
commite5619547d5544a043dfec173f17020b09f882a98 (patch)
treed6b127a0ea3b71d139531cfc25e2e68f558325f0 /app/models/user.rb
parent7f65f49b5036e4318b91dfc1ecd3ca21bc8ba74a (diff)
downloadincommon-map-e5619547d5544a043dfec173f17020b09f882a98.tar.gz
[FIX] Availability of agents
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 7288412..9e5c184 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -9,6 +9,7 @@ class User < ApplicationRecord
include UsersHelper
def avatar_url
- attributes[:avatar_url] || default_user_avatar_url
+ attributes[:avatar_url].present? ?
+ attributes[:avatar_url] : '' # default_user_avatar_url
end
end