Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

gravatar fix

  • Loading branch information...
commit 0fe8ee30451173d2f96aa304155d38127e873d23 1 parent 3dc62b1
@dbc-apprentice dbc-apprentice authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/helpers/users_helper.rb
View
2  app/helpers/users_helper.rb
@@ -3,7 +3,7 @@ module UsersHelper
#Returns the Gravatar (http://gravatar.com/) for the given user.
def gravatar_for(user)
- if User.count > 0
+ if signed_in?
gravatar_id = Digest::MD5::hexdigest(user.email.downcase)
gravatar_url = "https://secure.gravatar.com/avatar/#{gravatar_id}"
image_tag(gravatar_url, alt: user.name, class: "gravatar")
Please sign in to comment.
Something went wrong with that request. Please try again.