mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Use content_tag
for generating markup in unmask
method
This commit is contained in:
parent
e5b8ea017c
commit
8fb4256432
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ module UserHelper
|
|||
def unmask(user, context_user, anonymous_identifier)
|
||||
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
|
||||
|
||||
def anonymous_name(context_user)
|
||||
|
|
Loading…
Reference in a new issue