diff --git a/lib/rails-html-sanitizer.rb b/lib/rails-html-sanitizer.rb index 39ac71d..59ed70d 100644 --- a/lib/rails-html-sanitizer.rb +++ b/lib/rails-html-sanitizer.rb @@ -20,8 +20,6 @@ def safe_list_sanitizer end def white_list_sanitizer - ActiveSupport::Deprecation.warn "warning: white_list_sanitizer is" \ - " deprecated, please use safe_list_sanitizer instead." safe_list_sanitizer end end diff --git a/lib/rails/html/sanitizer.rb b/lib/rails/html/sanitizer.rb index a539102..b35010a 100644 --- a/lib/rails/html/sanitizer.rb +++ b/lib/rails/html/sanitizer.rb @@ -151,8 +151,5 @@ def allowed_attributes(options) end WhiteListSanitizer = SafeListSanitizer - if Object.respond_to?(:deprecate_constant) - deprecate_constant :WhiteListSanitizer - end end end