You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Ran across this today. I have a config class with a default config like
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 callConfigClass.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.The text was updated successfully, but these errors were encountered: