Commit 594adf32 by liyijie

feat: use deep_merge instead of merge for hash val

parent bbe60158
...@@ -158,7 +158,7 @@ module TalltyImportExport ...@@ -158,7 +158,7 @@ module TalltyImportExport
attr = k_arr.first attr = k_arr.first
val = { k_arr[1..-1].join('.') => v }.to_nested_hash val = { k_arr[1..-1].join('.') => v }.to_nested_hash
h[attr.to_sym] ||= {} h[attr.to_sym] ||= {}
h[attr.to_sym].merge! val h[attr.to_sym].deep_merge! val
else else
h[k.to_sym] = val h[k.to_sym] = val
end end
......
module TalltyImportExport module TalltyImportExport
VERSION = '1.1.5' VERSION = '1.1.6'
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment