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:
parent
db82d4da62
commit
c3b08725a1
3 changed files with 7 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
* Remove deprecated `format` argument `ActionView::Base#initialize`.
|
||||||
|
|
||||||
|
*Rafael Mendonça França*
|
||||||
|
|
||||||
* Remove deprecated `ActionView::Template#refresh`.
|
* Remove deprecated `ActionView::Template#refresh`.
|
||||||
|
|
||||||
*Rafael Mendonça França*
|
*Rafael Mendonça França*
|
||||||
|
|
|
@ -240,19 +240,11 @@ module ActionView #:nodoc:
|
||||||
new context, assigns, controller
|
new context, assigns, controller
|
||||||
end
|
end
|
||||||
|
|
||||||
NULL = Object.new
|
|
||||||
|
|
||||||
# :startdoc:
|
# :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
|
@_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
|
case lookup_context
|
||||||
when ActionView::LookupContext
|
when ActionView::LookupContext
|
||||||
@lookup_context = lookup_context
|
@lookup_context = lookup_context
|
||||||
|
|
|
@ -55,6 +55,8 @@ Please refer to the [Changelog][action-pack] for detailed changes.
|
||||||
|
|
||||||
### Removals
|
### Removals
|
||||||
|
|
||||||
|
* Remove deprecated `format` argument `ActionView::Base#initialize`.
|
||||||
|
|
||||||
* Remove deprecated `ActionView::Template#refresh`.
|
* Remove deprecated `ActionView::Template#refresh`.
|
||||||
|
|
||||||
* Remove deprecated `ActionView::Template#original_encoding`.
|
* Remove deprecated `ActionView::Template#original_encoding`.
|
||||||
|
|
Loading…
Reference in a new issue