aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-03-07 15:59:36 +0900
committerGitHub <noreply@github.com>2019-03-07 15:59:36 +0900
commitcdc62d5bcae7be47eefb346b78e310a3f1b63545 (patch)
treea913f290bfe9f5711240cd114ac9bc3d00195c27
parent73a3770663cd93e68167983edca334d17e4d3edf (diff)
parentc03a50ade38865d77d87f60f4a4d7824277ad071 (diff)
downloadrails-cdc62d5bcae7be47eefb346b78e310a3f1b63545.tar.gz
rails-cdc62d5bcae7be47eefb346b78e310a3f1b63545.tar.bz2
rails-cdc62d5bcae7be47eefb346b78e310a3f1b63545.zip
Merge pull request #35508 from cjlarose/add-explicit-require-in-actiontext-initializer
Explicitly require rails-html-sanitizer gem in ActionText helpers
-rw-r--r--actiontext/app/helpers/action_text/content_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actiontext/app/helpers/action_text/content_helper.rb b/actiontext/app/helpers/action_text/content_helper.rb
index b3335601f9..2005033d5c 100644
--- a/actiontext/app/helpers/action_text/content_helper.rb
+++ b/actiontext/app/helpers/action_text/content_helper.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+require "rails-html-sanitizer"
+
module ActionText
module ContentHelper
SANITIZER = Rails::Html::Sanitizer.white_list_sanitizer