Back to getSchema

This commit is contained in:
Ben Ogle
2014-09-24 12:47:00 -07:00
parent ba4df1b002
commit 9fbbd1e59b
2 changed files with 6 additions and 6 deletions

View File

@@ -198,7 +198,7 @@ class Config
isDefault: (keyPath) ->
not _.valueForKeyPath(@settings, keyPath)?
schemaForKeyPath: (keyPath) ->
getSchema: (keyPath) ->
keys = keyPath.split('.')
schema = @schema
for key in keys
@@ -395,7 +395,7 @@ class Config
defaults
scrubValue: (keyPath, value) ->
value = @constructor.executeSchemaValidators(value, schema) if schema = @schemaForKeyPath(keyPath)
value = @constructor.executeSchemaValidators(value, schema) if schema = @getSchema(keyPath)
value
Config.addSchemaValidators