]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/user_roles_helper.rb
Prefer string interpolation to concatenation
[rails.git] / app / helpers / user_roles_helper.rb
index 43807659243f47f1ddf6c8d91eccfb43701cb192..384fb7280f2a9152241abb7bb2b17a5dfcd6d418 100644 (file)
@@ -1,7 +1,7 @@
 module UserRolesHelper
   def role_icons(user)
     UserRole::ALL_ROLES.reduce("".html_safe) do |acc, elem|
-      acc + " " + role_icon(user, elem)
+      "#{acc} #{role_icon(user, elem)}"
     end
   end