Update rubocop todo and fix new warnings

This commit is contained in:
Tom Hughes 2021-09-14 20:31:26 +01:00
parent 0041375721
commit 8a9dbc94c8
4 changed files with 47 additions and 43 deletions

View file

@ -11,7 +11,7 @@ module OpenGraphHelper
}
safe_join(tags.map do |property, content|
tag(:meta, :property => property, :content => content)
tag.meta(:property => property, :content => content)
end, "\n")
end
end

View file

@ -25,7 +25,7 @@ module UserRolesHelper
end
if image
svg_icon = tag("source", :srcset => image_path("#{image}.svg"), :type => "image/svg+xml")
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 = tag.picture(svg_icon + png_icon)
icon = link_to(icon, url, :method => :post, :confirm => confirm) if url