mirror of https://github.com/rails/rails
Remove deprecated `escape_whitelist` from `ActionView::Template::Handlers::ERB`
This commit is contained in:
parent
dafa49bb4c
commit
6583895ebe
|
@ -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*
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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`.
|
||||
|
|
Loading…
Reference in New Issue