mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #35255 from kamipo/fix_useless_assignment
Address to useless assignment `formats = nil` after #35254
This commit is contained in:
commit
4e4b1d05ea
2 changed files with 1 additions and 5 deletions
|
@ -239,9 +239,7 @@ module ActionView #:nodoc:
|
||||||
def initialize(lookup_context = nil, assigns = {}, controller = nil, formats = NULL) #:nodoc:
|
def initialize(lookup_context = nil, assigns = {}, controller = nil, formats = NULL) #:nodoc:
|
||||||
@_config = ActiveSupport::InheritableOptions.new
|
@_config = ActiveSupport::InheritableOptions.new
|
||||||
|
|
||||||
if formats == NULL
|
unless formats == NULL
|
||||||
formats = nil
|
|
||||||
else
|
|
||||||
ActiveSupport::Deprecation.warn <<~eowarn
|
ActiveSupport::Deprecation.warn <<~eowarn
|
||||||
Passing formats to ActionView::Base.new is deprecated
|
Passing formats to ActionView::Base.new is deprecated
|
||||||
eowarn
|
eowarn
|
||||||
|
|
|
@ -2,5 +2,3 @@
|
||||||
[
|
[
|
||||||
<%= render(partial: "first").chomp.html_safe %>,
|
<%= render(partial: "first").chomp.html_safe %>,
|
||||||
]}
|
]}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue