diff options
author | Timm <kaspth@gmail.com> | 2014-05-27 13:55:00 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:24 +0200 |
commit | e438c090ae2b1dbfb9a44481a9cc7df55bd3139f (patch) | |
tree | 0a6067552f1cff0246e413ff2e5c1f82b5a3dbfe /actionview | |
parent | d4cd7e2a44b2c19df31f7cb0ce03b957f3a359af (diff) | |
download | rails-e438c090ae2b1dbfb9a44481a9cc7df55bd3139f.tar.gz rails-e438c090ae2b1dbfb9a44481a9cc7df55bd3139f.tar.bz2 rails-e438c090ae2b1dbfb9a44481a9cc7df55bd3139f.zip |
Change sanitizer_vendor to just be a method and reword documentation.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/sanitize_helper.rb | 9 |
1 files changed, 5 insertions, 4 deletions
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 |