Remove deprecated `escape_whitelist` from `ActionView::Template::Handlers::ERB`

This commit is contained in:
Rafael Mendonça França 2020-05-06 20:19:54 -04:00
parent dafa49bb4c
commit 6583895ebe
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
3 changed files with 6 additions and 10 deletions

View File

@ -1,3 +1,7 @@
* Remove deprecated `escape_whitelist` from `ActionView::Template::Handlers::ERB`.
*Rafael Mendonça França*
* Remove deprecated `find_all_anywhere` from `ActionView::Resolver`.
*Rafael Mendonça França*

View File

@ -16,16 +16,6 @@ module ActionView
# Do not escape templates of these mime types.
class_attribute :escape_ignore_list, default: ["text/plain"]
[self, singleton_class].each do |base|
base.alias_method :escape_whitelist, :escape_ignore_list
base.alias_method :escape_whitelist=, :escape_ignore_list=
base.deprecate(
escape_whitelist: "use #escape_ignore_list instead",
:escape_whitelist= => "use #escape_ignore_list= instead"
)
end
ENCODING_TAG = Regexp.new("\\A(<%#{ENCODING_FLAG}-?%>)[ \\t]*")
def self.call(template, source)

View File

@ -55,6 +55,8 @@ Please refer to the [Changelog][action-pack] for detailed changes.
### Removals
* Remove deprecated `escape_whitelist` from `ActionView::Template::Handlers::ERB`.
* Remove deprecated `find_all_anywhere` from `ActionView::Resolver`.
* Remove deprecated `formats` from `ActionView::Template::HTML`.