Closed mamantoha closed 6 years ago
The documentation says that this code should be correct:
Crest::Utils.flatten_params({:key1 => {:arr => ["1", "2", "3"]}, :key2 => "123"}) # => {"key1[arr][]" => "1", "key1[arr][]" => "2", "key1[arr][]" => "3", "key2" => "123"}
Actual result is {"key1[arr][]" => "3", "key2" => "123"}
{"key1[arr][]" => "3", "key2" => "123"}
https://github.com/mamantoha/crest/pull/85
The documentation says that this code should be correct:
Actual result is
{"key1[arr][]" => "3", "key2" => "123"}