Skip to content

Commit 5581871

Browse files
committed
Remove needless white list sanitizer deprecations
Keeping support for these methods, without deprecations, makes Rails 5.2 just work. Then Rails 6 will depend on 1.2.0 which uses safe_list_sanitizer etc. Sorry for all the needless ruckus and confusion around 1.1.0!
1 parent 1a02a14 commit 5581871

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

lib/rails-html-sanitizer.rb

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ def safe_list_sanitizer
2020
end
2121

2222
def white_list_sanitizer
23-
ActiveSupport::Deprecation.warn "warning: white_list_sanitizer is" \
24-
" deprecated, please use safe_list_sanitizer instead."
2523
safe_list_sanitizer
2624
end
2725
end

lib/rails/html/sanitizer.rb

-3
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,5 @@ def allowed_attributes(options)
151151
end
152152

153153
WhiteListSanitizer = SafeListSanitizer
154-
if Object.respond_to?(:deprecate_constant)
155-
deprecate_constant :WhiteListSanitizer
156-
end
157154
end
158155
end

0 commit comments

Comments
 (0)