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

#render already provides something html_safe

This commit is contained in:
David Heinemeier Hansson 2018-06-07 14:41:57 +02:00
parent 206c04f716
commit 2f530577ce

View file

@ -54,7 +54,7 @@ module ActionText
end
def to_html_with_layout
ActionText.renderer.render(partial: "action_text/content/layout", locals: { document: to_html }).html_safe
ActionText.renderer.render(partial: "action_text/content/layout", locals: { document: to_html })
end
def to_s