aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-06-07 14:41:57 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-06-07 14:41:57 +0200
commit2f530577ce998a9e71385dcfa6bb33da6a34fe57 (patch)
treeec66a140360ab7e9276fa1b3e1868a56339456cf /lib
parent206c04f716cbc608e0913f31e19b79458014e519 (diff)
downloadrails-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.rb2
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