aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/sanitize_helper.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-15 14:57:22 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-15 20:19:59 -0300
commit045d7173167043389dbe8bd961425c1b1cc86d48 (patch)
treea050f21bf9ecdaca8f3401cbb64f27fec1942601 /actionview/lib/action_view/helpers/sanitize_helper.rb
parent82e478836f593d481a949381c50e351d4327b5ae (diff)
downloadrails-045d7173167043389dbe8bd961425c1b1cc86d48.tar.gz
rails-045d7173167043389dbe8bd961425c1b1cc86d48.tar.bz2
rails-045d7173167043389dbe8bd961425c1b1cc86d48.zip
Use the plugin API to the getter and setters
To avoid having to redefine these methods on the deprecated plugin we should be using the sanitizer_vendor API.
Diffstat (limited to 'actionview/lib/action_view/helpers/sanitize_helper.rb')
-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 168f327a87..2268fe25c1 100644
--- a/actionview/lib/action_view/helpers/sanitize_helper.rb
+++ b/actionview/lib/action_view/helpers/sanitize_helper.rb
@@ -144,11 +144,11 @@ module ActionView
end
def sanitized_allowed_tags
- Rails::Html::WhiteListSanitizer.allowed_tags
+ sanitizer_vendor.white_list_sanitizer.allowed_tags
end
def sanitized_allowed_attributes
- Rails::Html::WhiteListSanitizer.allowed_attributes
+ sanitizer_vendor.white_list_sanitizer.allowed_attributes
end
# Gets the Rails::Html::FullSanitizer instance used by +strip_tags+. Replace with
@@ -191,7 +191,7 @@ module ActionView
# end
#
def sanitized_allowed_tags=(tags)
- Rails::Html::WhiteListSanitizer.allowed_tags = tags
+ sanitizer_vendor.white_list_sanitizer.allowed_tags = tags
end
# Replaces the allowed HTML attributes for the +sanitize+ helper.
@@ -201,7 +201,7 @@ module ActionView
# end
#
def sanitized_allowed_attributes=(attributes)
- Rails::Html::WhiteListSanitizer.allowed_attributes = attributes
+ sanitizer_vendor.white_list_sanitizer.allowed_attributes = attributes
end
end
end