1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove deprecated format argument ActionView::Base#initialize

This commit is contained in:
Rafael Mendonça França 2020-05-06 13:21:07 -04:00
parent db82d4da62
commit c3b08725a1
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948
3 changed files with 7 additions and 9 deletions

View file

@ -1,3 +1,7 @@
* Remove deprecated `format` argument `ActionView::Base#initialize`.
*Rafael Mendonça França*
* Remove deprecated `ActionView::Template#refresh`.
*Rafael Mendonça França*

View file

@ -240,19 +240,11 @@ module ActionView #:nodoc:
new context, assigns, controller
end
NULL = Object.new
# :startdoc:
def initialize(lookup_context = nil, assigns = {}, controller = nil, formats = NULL) #:nodoc:
def initialize(lookup_context = nil, assigns = {}, controller = nil) #:nodoc:
@_config = ActiveSupport::InheritableOptions.new
unless formats == NULL
ActiveSupport::Deprecation.warn <<~eowarn.squish
Passing formats to ActionView::Base.new is deprecated
eowarn
end
case lookup_context
when ActionView::LookupContext
@lookup_context = lookup_context

View file

@ -55,6 +55,8 @@ Please refer to the [Changelog][action-pack] for detailed changes.
### Removals
* Remove deprecated `format` argument `ActionView::Base#initialize`.
* Remove deprecated `ActionView::Template#refresh`.
* Remove deprecated `ActionView::Template#original_encoding`.