From 9f33ab5566975411f3c98194102a7ab92cd70d9c Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Sun, 30 Nov 2014 14:34:27 +0100 Subject: [PATCH] fixed stuff --- app/helpers/application_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5159635e..f8218a84 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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