Ran across this today. I have a config class with a default config like
config_context :reporting do
default(:dev, false)
end
When I call ConfigClass.hash_dup on this class without trying to load any config into it I get back an empty hash. But if I call ConfigClass.reporting.dev and see it return the default value of false, then call .hash_dup on it the hash correctly has it populated.
I would expect the first time I call .hash_dup or .to_hash that default values would be populated.
Ran across this today. I have a config class with a default config like
When I call
ConfigClass.hash_dupon this class without trying to load any config into it I get back an empty hash. But if I callConfigClass.reporting.devand see it return the default value of false, then call.hash_dupon it the hash correctly has it populated.I would expect the first time I call
.hash_dupor.to_hashthat default values would be populated.