Update doc for `validatesFormatOf`
This commit is contained in:
parent
7f277b2563
commit
9557558c8f
|
@ -148,7 +148,7 @@ Validatable.validatesExclusionOf = getConfigurator('exclusion');
|
||||||
* Validate format. Require a model to include a property that matches the given format.
|
* Validate format. Require a model to include a property that matches the given format.
|
||||||
*
|
*
|
||||||
* Require a model to include a property that matches the given format. Example:
|
* Require a model to include a property that matches the given format. Example:
|
||||||
* `User.validatesFormat('name', {with: /\w+/});`
|
* `User.validatesFormatOf('name', {with: /\w+/});`
|
||||||
*
|
*
|
||||||
* @param {String} propertyName Property name to validate.
|
* @param {String} propertyName Property name to validate.
|
||||||
* @options {Object} Options
|
* @options {Object} Options
|
||||||
|
|
Loading…
Reference in New Issue