lib/kubes/compiler/strategy/dispatcher.rb in kubes-0.7.4 vs lib/kubes/compiler/strategy/dispatcher.rb in kubes-0.7.5

- old
+ new

@@ -2,11 +2,11 @@ class Dispatcher < Base def dispatch result = render(@path) # main results = [result].flatten # ensure array data = results.map! do |main| - hash = pre_layer.deeper_merge!(main) # need the ! or deep_merge returns original hash - hash.deeper_merge!(post_layer) + hash = Kubes.deep_merge!(pre_layer, main) + Kubes.deep_merge!(hash, post_layer) end Result.new(@save_file, data) end # Render via to Erb or one of the DSL syntax classes or Core/Blocks class