lib/ultra_config/namespace.rb in ultra_config-0.15.0 vs lib/ultra_config/namespace.rb in ultra_config-0.15.1
- old
+ new
@@ -60,10 +60,10 @@
def merge_hash!(hash, parents = [])
hash.each do |k, v|
options = send_chain(parents)
if options.objects[k.to_sym].is_a?(Config)
- options.send("#{k}=", v)
+ options.send("#{k}=", v) unless v.nil?
elsif options.objects[k.to_sym].is_a?(Namespace)
merge_hash!(v, parents + [k])
else
logger.warn { "received an unknown config #{k} with value #{v} and parents: #{parents}" }
end
\ No newline at end of file