Skip to content

Commit

Permalink
fix: small typos in model initialize-class.js (#505)
Browse files Browse the repository at this point in the history
* Fix small typos

* Fix lint errors
nickschot authored and zacharygolba committed Nov 9, 2016
1 parent 7769865 commit 56321bb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/packages/database/model/initialize-class.js
Original file line number Diff line number Diff line change
@@ -94,17 +94,18 @@ function initializeValidations(opts) {

if (!isValid) {
logger.warn(line`
Invalid valiation '${key}' will not be added to Model '${model.name}'.
'${key}' is not an attribute of Model '${model.name}'.
Invalid validation '${key}' will not be added to Model
'${model.name}'. '${key}' is not an attribute of Model
'${model.name}'.
`);
}

if (typeof value !== 'function') {
isValid = false;

logger.warn(line`
Invalid valiation '${key}' will not be added to Model '${model.name}'.
Validations must be a function.
Invalid validation '${key}' will not be added to Model
'${model.name}'. Validations must be a function.
`);
}

0 comments on commit 56321bb

Please sign in to comment.