X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/88ba316abeecffccd1cb51c63ce5594c95023624..3f8cf322723750aa4c8d062d4a727f9107ceccb4:/app/helpers/user_roles_helper.rb diff --git a/app/helpers/user_roles_helper.rb b/app/helpers/user_roles_helper.rb index 79e7cc012..15231f4d0 100644 --- a/app/helpers/user_roles_helper.rb +++ b/app/helpers/user_roles_helper.rb @@ -1,6 +1,6 @@ module UserRolesHelper def role_icons(user) - safe_join(UserRole::ALL_ROLES.collect { |role| role_icon(user, role) }.compact, " ") + safe_join(UserRole::ALL_ROLES.filter_map { |role| role_icon(user, role) }, " ") end def role_icon(user, role)