fixed stuff
This commit is contained in:
parent
2b81ad86db
commit
9f33ab5566
|
@ -51,6 +51,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def gravatar_url(user)
|
||||
return '//www.gravatar.com/avatar' if user.nil?
|
||||
"//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user.email)}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue