aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r--actionview/lib/action_view/helpers/sanitize_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionview/lib/action_view/helpers/sanitize_helper.rb b/actionview/lib/action_view/helpers/sanitize_helper.rb
index 38354a1d0b..1acb8d5648 100644
--- a/actionview/lib/action_view/helpers/sanitize_helper.rb
+++ b/actionview/lib/action_view/helpers/sanitize_helper.rb
@@ -138,11 +138,11 @@ module ActionView
end
def sanitized_allowed_tags
- Rails::Html::WhiteListSanitizer.allowed_tags
+ HTML::WhiteListSanitizer.allowed_tags
end
def sanitized_allowed_attributes
- Rails::Html::WhiteListSanitizer.allowed_attributes
+ HTML::WhiteListSanitizer.allowed_attributes
end
# Gets the Rails::Html::FullSanitizer instance used by +strip_tags+. Replace with
@@ -185,7 +185,7 @@ module ActionView
# end
#
def sanitized_allowed_tags=(*tags)
- Rails::Html::WhiteListSanitizer.allowed_tags = tags
+ HTML::WhiteListSanitizer.allowed_tags = tags
end
# Replaces the allowed HTML attributes for the +sanitize+ helper.
@@ -195,7 +195,7 @@ module ActionView
# end
#
def sanitized_allowed_attributes=(*attributes)
- Rails::Html::WhiteListSanitizer.allowed_attributes = attributes
+ HTML::WhiteListSanitizer.allowed_attributes = attributes
end
end
end