aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorIN COMMON Collective <collective@incommon.cc>2021-03-22 19:07:31 +0100
committerIN COMMON Collective <collective@incommon.cc>2021-03-22 19:07:31 +0100
commit3fd2284c91231a142139b794cbb0a151b6adf8d0 (patch)
treec020004793a378c8491d64a09eb12e838a0bddd1 /app
parentf3bd198305ef63373e63be0f4e54963b0db3f0fe (diff)
downloadincommon-map-3fd2284c91231a142139b794cbb0a151b6adf8d0.tar.gz
[FIX] Fix User avatar
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 9e5c184..d45aa8b 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -9,7 +9,7 @@ class User < ApplicationRecord
include UsersHelper
def avatar_url
- attributes[:avatar_url].present? ?
- attributes[:avatar_url] : '' # default_user_avatar_url
+ attributes['avatar_url'].present? ?
+ attributes['avatar_url'] : '' # default_user_avatar_url
end
end