lib/config_default.rb in config_default-0.2.3 vs lib/config_default.rb in config_default-0.2.4
- old
+ new
@@ -29,9 +29,11 @@
config = load_file(name)
data = default_config.deep_merge(config)
data = key ? data[key] : data
+ return {} if data.nil?
+
if deep_symbolize_keys
data.deep_symbolize_keys
elsif symbolize_keys
data.symbolize_keys
else