mirror of
https://github.com/meineerde/rackstash.git
synced 2025-10-17 14:01:01 +00:00
Explicitly name supported collection types during normalize
Since an AbstractCollection can in principal contain any raw value, we want to make sure that we only handle known values. Others will probably still be catched by the fallback converter calls at the bottom of AbstractCollection#normalize.
This commit is contained in:
parent
0026cdb204
commit
7459a27a1c
@ -115,7 +115,7 @@ module Rackstash
|
||||
return value
|
||||
when true, false, nil
|
||||
return value
|
||||
when Rackstash::Fields::AbstractCollection
|
||||
when Rackstash::Fields::Hash, Rackstash::Fields::Array
|
||||
return wrap ? value : value.raw
|
||||
when ::Hash
|
||||
hash = value.each_with_object(Concurrent::Hash.new) do |(k, v), memo|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user