diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-06-07 14:41:57 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-06-07 14:41:57 +0200 |
commit | 2f530577ce998a9e71385dcfa6bb33da6a34fe57 (patch) | |
tree | ec66a140360ab7e9276fa1b3e1868a56339456cf /lib | |
parent | 206c04f716cbc608e0913f31e19b79458014e519 (diff) | |
download | rails-2f530577ce998a9e71385dcfa6bb33da6a34fe57.tar.gz rails-2f530577ce998a9e71385dcfa6bb33da6a34fe57.tar.bz2 rails-2f530577ce998a9e71385dcfa6bb33da6a34fe57.zip |
#render already provides something html_safe
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action_text/content.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_text/content.rb b/lib/action_text/content.rb index 9dae07cf0c..c296896ac4 100644 --- a/lib/action_text/content.rb +++ b/lib/action_text/content.rb @@ -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 |