From b06ed16211ce091f87fba52d1b71d33765e1ff94 Mon Sep 17 00:00:00 2001 From: Amir Szekely Date: Fri, 24 Jan 2025 17:49:32 +0000 Subject: [PATCH] support frozen string literals --- lib/rails-footnotes/abstract_note.rb | 2 +- lib/rails-footnotes/filter.rb | 6 +++--- lib/rails-footnotes/notes/log_note.rb | 4 ++-- lib/rails-footnotes/notes/queries_note.rb | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/rails-footnotes/abstract_note.rb b/lib/rails-footnotes/abstract_note.rb index 01d8300c..b98a7daf 100644 --- a/lib/rails-footnotes/abstract_note.rb +++ b/lib/rails-footnotes/abstract_note.rb @@ -169,7 +169,7 @@ def mount_table_for_hash(hash, options={}) def hash_to_xml_attributes(hash) newstring = "" hash.each do |key, value| - newstring << "#{key.to_s}=\"#{value.gsub('"','\"')}\" " + newstring += "#{key.to_s}=\"#{value.gsub('"','\"')}\" " end return newstring end diff --git a/lib/rails-footnotes/filter.rb b/lib/rails-footnotes/filter.rb index d9a69e60..935a4827 100644 --- a/lib/rails-footnotes/filter.rb +++ b/lib/rails-footnotes/filter.rb @@ -287,7 +287,7 @@ def links html = '' order.uniq! order.each do |row| - html << "#{row.is_a?(String) ? row : row.to_s.camelize}: #{links[row].join(" | \n")}
" + html += "#{row.is_a?(String) ? row : row.to_s.camelize}: #{links[row].join(" | \n")}
" end html end @@ -298,7 +298,7 @@ def fieldsets content = '' each_with_rescue(@notes) do |note| next unless note.has_fieldset? - content << <<-HTML + content += <<-HTML