Update rubocop todo and fix new warnings
This commit is contained in:
parent
0041375721
commit
8a9dbc94c8
4 changed files with 47 additions and 43 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue