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

Cleanup unneeded blank string params in ActionText

This commit is contained in:
Jan Habermann 2019-08-23 20:11:50 +02:00
parent 577922f11e
commit 40be6b1d4d
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ module ActionText
attachment_gallery.attachments.map do |attachment|
attachment.node.inner_html = render(attachment, in_gallery: true).chomp
attachment.to_html
end.join("").html_safe
end.join.html_safe
end.chomp
end
end

View file

@ -22,7 +22,7 @@ module ActionText
node.children.each_with_index do |child, index|
texts << plain_text_for_node(child, index)
end
texts.join("")
texts.join
end
def plain_text_method_for_node(node)