Utils: deep_merge_hashes should also merge default_proc

If the target hash's default_proc isn't set, overwrite with the new hash's default_proc.

/cc #4064
This commit is contained in:
Parker Moore 2015-10-26 17:27:26 -07:00
parent 170d6de8d9
commit 45f69bb8cd
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@ module Jekyll
target[key] = overwrite[key]
end
if target.default_proc.nil?
target.default_proc = overwrite.default_proc
end
target
end