Module: Bananajour::GravatarHelpers

Included in:
Bananajour
Defined in:
lib/bananajour/helpers.rb

Instance Method Summary collapse

Instance Method Details

#gravatarObject



5
6
7
# File 'lib/bananajour/helpers.rb', line 5

def gravatar
  gravatar_uri(self.config.email)
end

#gravatar_uri(email) ⇒ Object



8
9
10
# File 'lib/bananajour/helpers.rb', line 8

def gravatar_uri(email)
  "http://gravatar.com/avatar/#{Digest::MD5.hexdigest(email)}.png"
end