Module: HttpsGravatarImageHelper
- Defined in:
- app/helpers/https_gravatar_image_helper.rb
Instance Method Summary collapse
Instance Method Details
#https_gravatar_image(email, image_html: {}) ⇒ Object
2 3 4 5 |
# File 'app/helpers/https_gravatar_image_helper.rb', line 2 def https_gravatar_image email, image_html: {} gravatar_id = Digest::MD5.hexdigest email.downcase image_tag "https://gravatar.com/avatar/#{gravatar_id}", image_html end |