X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bfffe7ed96e1aba434ca40b488264c43d8f679ff..caf2e2a242182f2c0dac78fc3f2f39b3fbbc8299:/app/helpers/user_roles_helper.rb?ds=sidebyside diff --git a/app/helpers/user_roles_helper.rb b/app/helpers/user_roles_helper.rb index 384fb7280..15231f4d0 100644 --- a/app/helpers/user_roles_helper.rb +++ b/app/helpers/user_roles_helper.rb @@ -1,8 +1,6 @@ module UserRolesHelper def role_icons(user) - UserRole::ALL_ROLES.reduce("".html_safe) do |acc, elem| - "#{acc} #{role_icon(user, elem)}" - end + safe_join(UserRole::ALL_ROLES.filter_map { |role| role_icon(user, role) }, " ") end def role_icon(user, role)