LET'S MAKE THIS HAPPEN

This commit is contained in:
nilsding 2014-12-12 18:00:34 +01:00
parent b79d4f30ac
commit 6078555c20
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ module ApplicationHelper
end
def gravatar_url(user)
return '/cage.png'
return '//www.gravatar.com/avatar' if user.nil?
return "//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user)}" if user.is_a? String
"//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user.email)}"