get rid of nil values in app config, they destroy the merge
This commit is contained in:
parent
d6e9e9cca5
commit
574deada03
1 changed files with 2 additions and 1 deletions
|
|
@ -85,6 +85,7 @@ class AppConfig
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.load_config_yaml filename
|
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
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue