Sha256: cebd6060a273c842c6b55663507c44c8feed9e1217b31952db3efe5add1958d8

Contents?: true

Size: 168 Bytes

Versions: 5

Compression:

Stored size: 168 Bytes

Contents

module ApplicationHelper

  def avatar(user)
    email_hash = Digest::MD5.hexdigest(user.email.downcase)
    "https://www.gravatar.com/avatar/#{email_hash}"
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notify_on-1.0.5 spec/dummy/app/helpers/application_helper.rb
notify_on-1.0.4 spec/dummy/app/helpers/application_helper.rb
notify_on-1.0.3 spec/dummy/app/helpers/application_helper.rb
notify_on-1.0.2 spec/dummy/app/helpers/application_helper.rb
notify_on-1.0.1 spec/dummy/app/helpers/application_helper.rb