Use ko_deep_merge for incremental data removal

pull/11/head
Daniel Asher Resnick 2 years ago
parent 582379787f
commit 071ebe801d
  1. 4
      src/lib/data/custom.rb

@ -15,10 +15,10 @@ module Charred
data[:stocks].deep_merge!({ stock.key => stock })
when ".lifepaths"
contents = json_get(file)
data[:lifepaths].deep_merge!({ contents["stock"] => contents["settings"]})
data[:lifepaths].ko_deep_merge!({ contents["stock"] => contents["settings"]})
when ".resources"
contents = json_get(file)
data[:resources].deep_merge!({ contents["stock"] => contents["resources"]})
data[:resources].ko_deep_merge!({ contents["stock"] => contents["resources"]})
end
end
}

Loading…
Cancel
Save