1
0
Fork 0
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:
Rafael França 2019-02-13 12:29:29 -05:00 committed by GitHub
commit 4e4b1d05ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -239,9 +239,7 @@ module ActionView #:nodoc:
def initialize(lookup_context = nil, assigns = {}, controller = nil, formats = NULL) #:nodoc:
@_config = ActiveSupport::InheritableOptions.new
if formats == NULL
formats = nil
else
unless formats == NULL
ActiveSupport::Deprecation.warn <<~eowarn
Passing formats to ActionView::Base.new is deprecated
eowarn

View file

@ -2,5 +2,3 @@
[
<%= render(partial: "first").chomp.html_safe %>,
]}