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:
Alexander Machehin 2015-06-04 21:42:43 +05:00 committed by Vokhmin Alexey V
parent c7d6792acd
commit d8a3797112
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ module UsersHelper
if subject.try('avatar?') if subject.try('avatar?')
subject.avatar.url(size) subject.avatar.url(size)
elsif subject.kind_of? Group elsif subject.kind_of? Group
image_path('ava-big.png') 'ava-big.png'
else else
gravatar_url(subject.email, User::AVATAR_SIZES[size]) gravatar_url(subject.email, User::AVATAR_SIZES[size])
end end