fix: Asset names passed to helpers should not include the "/assets/" prefix. Instead of "/assets/ava-big.png", use "ava-big.png"
This commit is contained in:
parent
c7d6792acd
commit
d8a3797112
|
@ -8,7 +8,7 @@ module UsersHelper
|
|||
if subject.try('avatar?')
|
||||
subject.avatar.url(size)
|
||||
elsif subject.kind_of? Group
|
||||
image_path('ava-big.png')
|
||||
'ava-big.png'
|
||||
else
|
||||
gravatar_url(subject.email, User::AVATAR_SIZES[size])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue