Keep img title attr

This commit is contained in:
Luke Bennett 2018-07-20 12:07:06 +01:00
parent 6feb6d908e
commit 94c5bac97b
No known key found for this signature in database
GPG key ID: A738E9C68D3BF31A

View file

@ -117,9 +117,9 @@ module AvatarsHelper
alt: "#{user_name}'s avatar",
src: avatar_url,
data: data_attributes,
class: css_class
class: css_class,
title: user_name
}
image_options[:title] = user_name if has_tooltip
tag(:img, image_options)
end