Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed little bug on validator

  • Loading branch information...
commit 8f470f55301d320af02d626b209fbc5aabf36566 1 parent 78925cc
@masylum masylum authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/validator.js
View
2  lib/validator.js
@@ -42,7 +42,7 @@ module.exports = function (model, data) {
if (create) {
this.errors[name] = this.errors[name] || [];
}
- return this.errors[name];
+ return this.errors[name] ? this.errors[name] : null;
} else {
error_bucket = this.errors;
for (;name_parts.length > 0;) {
Please sign in to comment.
Something went wrong with that request. Please try again.