mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-09 23:06:06 +00:00
Add :frozen_string_literal magic comment and underscore prefix to unused block argument for Rubocop
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This patch fixes the Rails issue where ActionDispatch::Request#deep_munge was converting empty
|
||||
# array paramters into nils, see https://github.com/rails/rails/issues/13420
|
||||
#
|
||||
@@ -28,7 +30,7 @@
|
||||
module ActionDispatch
|
||||
class Request
|
||||
def deep_munge(hash)
|
||||
hash.each do |k, v|
|
||||
hash.each do |_k, v|
|
||||
case v
|
||||
when Array
|
||||
v.grep(Hash) { |x| deep_munge(x) }
|
||||
|
||||
Reference in New Issue
Block a user