Fix deep merging of yml files

This commit is contained in:
2015-04-08 18:22:23 +02:00
parent 20ebd784fc
commit 1b82ab1784
3 changed files with 43 additions and 15 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ module Cmtool
def self.all_as_object
all.each.with_object Hash.new do |yml_file, obj|
yml_obj = YAML.load(yml_file.body) rescue nil
obj.merge!( yml_obj ) if yml_obj
obj.deep_merge!( yml_obj ) if yml_obj
end
end
end