Use `content_tag` for generating markup in `unmask` method
This commit is contained in:
parent
e5b8ea017c
commit
8fb4256432
|
@ -34,7 +34,7 @@ module UserHelper
|
||||||
def unmask(user, context_user, anonymous_identifier)
|
def unmask(user, context_user, anonymous_identifier)
|
||||||
return profile_link(user) if user.present?
|
return profile_link(user) if user.present?
|
||||||
|
|
||||||
"<abbr title='#{anonymous_identifier}'>#{anonymous_name(context_user)}</abbr>"
|
content_tag(:abbr, anonymous_name(context_user), title: anonymous_identifier)
|
||||||
end
|
end
|
||||||
|
|
||||||
def anonymous_name(context_user)
|
def anonymous_name(context_user)
|
||||||
|
|
Loading…
Reference in New Issue