get rid of nil values in app config, they destroy the merge

This commit is contained in:
MrZYX 2011-05-24 23:54:31 +02:00
parent d6e9e9cca5
commit 574deada03

View file

@ -85,6 +85,7 @@ class AppConfig
end
def self.load_config_yaml filename
YAML.load(File.read(filename))
# nil values are bad for merges and have no meaning here, so lets get rid of them
YAML.load(File.read(filename)).delete_if { |k, v| v.nil? }
end
end