From 3fd2284c91231a142139b794cbb0a151b6adf8d0 Mon Sep 17 00:00:00 2001 From: IN COMMON Collective Date: Mon, 22 Mar 2021 19:07:31 +0100 Subject: [FIX] Fix User avatar --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models') 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 -- cgit v1.2.3