diff --git a/lib/rails-footnotes/abstract_note.rb b/lib/rails-footnotes/abstract_note.rb index 01d8300..b98a7da 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 d9a69e6..935a482 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