Don't use ScopedPropertyStore::getProperties

This commit is contained in:
Max Brunsfeld
2014-12-30 13:57:59 -08:00
parent 6a285b695f
commit a1e4c0bb05

View File

@@ -1023,8 +1023,8 @@ class Config
settingsForScopeDescriptor: (scopeDescriptor, keyPath) ->
Grim.deprecate("Use Config::getAll instead")
scopeDescriptor = ScopeDescriptor.fromObject(scopeDescriptor)
@scopedSettingsStore.getProperties(scopeDescriptor.getScopeChain(), keyPath)
entries = @getAll(null, scope: scopeDescriptor)
value for {value} in entries when _.valueForKeyPath(value, keyPath)?
# Base schema enforcers. These will coerce raw input into the specified type,
# and will throw an error when the value cannot be coerced. Throwing the error