]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/user_roles_helper.rb
Fix new rubocop warnings
[rails.git] / app / helpers / user_roles_helper.rb
index b9430535ea3fa8702b5cbee8b3e77a7acb624c14..43807659243f47f1ddf6c8d91eccfb43701cb192 100644 (file)
@@ -29,7 +29,7 @@ module UserRolesHelper
     if image
       svg_icon = tag("source", :srcset => image_path("#{image}.svg"), :type => "image/svg+xml")
       png_icon = image_tag("#{image}.png", :srcset => image_path("#{image}.svg"), :size => "20x20", :border => 0, :alt => alt, :title => title)
-      icon = content_tag("picture", svg_icon + png_icon)
+      icon = tag.picture(svg_icon + png_icon)
       icon = link_to(icon, url, :method => :post, :confirm => confirm) if url
     end