1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Use different string dup to make rubocop happy

This commit is contained in:
Thomas Reynolds 2020-08-30 12:09:08 -07:00
parent e9d4cdcd2b
commit 729f72cc9a

View file

@ -18,10 +18,10 @@ module Middleman
classes << 'ignored' if @resource.ignored?
content_tag :div, class: classes.join(' ') do
content_tag :table do
content = ''.dup
content = +''
resource_properties.each do |label, value|
content << content_tag(:tr) do
row_content = ''.dup
row_content = +''
row_content << content_tag(:th, label)
row_content << content_tag(:td, value)
row_content.html_safe