]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/user_roles_helper.rb
Merge remote-tracking branch 'upstream/pull/3217'
[rails.git] / app / helpers / user_roles_helper.rb
index 79e7cc012ad1e2c32e25a1f9df21c20bb983c4dc..15231f4d066206575e457e3a7d3a2a7b5ccc2796 100644 (file)
@@ -1,6 +1,6 @@
 module UserRolesHelper
   def role_icons(user)
 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)
   end
 
   def role_icon(user, role)