Module: Brightcontent::ApplicationHelper

Defined in:
app/helpers/brightcontent/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#avatar_url(user) ⇒ Object



3
4
5
6
# File 'app/helpers/brightcontent/application_helper.rb', line 3

def avatar_url(user)
  gravatar_id = Digest::MD5.hexdigest(user.email.downcase)
  "https://gravatar.com/avatar/#{gravatar_id}.png?s=30&d=mm"
end