From e438c090ae2b1dbfb9a44481a9cc7df55bd3139f Mon Sep 17 00:00:00 2001 From: Timm Date: Tue, 27 May 2014 13:55:00 +0200 Subject: Change sanitizer_vendor to just be a method and reword documentation. --- actionview/lib/action_view/helpers/sanitize_helper.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'actionview/lib/action_view/helpers/sanitize_helper.rb') diff --git a/actionview/lib/action_view/helpers/sanitize_helper.rb b/actionview/lib/action_view/helpers/sanitize_helper.rb index 6c1be1ef4e..d4d3b0275d 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper.rb @@ -137,10 +137,11 @@ module ActionView define_method("#{meth_name}=") { |value| imp.("#{meth_name}=") } end - # A class to vendor out the full, link and white list sanitizers - # Can be set to either HTML::Deprecated::Sanitizer or Rails::Html::Sanitizer - mattr_accessor :sanitizer_vendor - self.sanitizer_vendor = Rails::Html::Sanitizer + # Vendors the full, link and white list sanitizers. + # Strictly for backwards compatibility with html-scanner. + def sanitizer_vendor + Rails::Html::Sanitizer + end def sanitized_allowed_tags Rails::Html::WhiteListSanitizer.allowed_tags -- cgit v1.2.3