Skip to content

Commit

Permalink
Remove needless white list sanitizer deprecations
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
kaspth committed Aug 8, 2019
1 parent 1a02a14 commit 5581871
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lib/rails-html-sanitizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions lib/rails/html/sanitizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,5 @@ def allowed_attributes(options)
end

WhiteListSanitizer = SafeListSanitizer
if Object.respond_to?(:deprecate_constant)
deprecate_constant :WhiteListSanitizer
end
end
end

0 comments on commit 5581871

Please sign in to comment.