Class: ActionDispatch::Request::Utils::NoNilParamEncoder

Inherits:
ParamEncoder
  • Object
show all
Defined in:
lib/action_dispatch/request/utils.rb

Overview

Remove nils from the params hash.

Class Method Summary collapse

Methods inherited from ParamEncoder

normalize_encode_params

Class Method Details

.handle_array(params) ⇒ Object

:nodoc:



78
79
80
81
82
# File 'lib/action_dispatch/request/utils.rb', line 78

def self.handle_array(params)
  list = super
  list.compact!
  list
end