Permalink
Browse files

Allow override even for totally missing value

  • Loading branch information...
1 parent c422bfb commit 0e6f8a32de9b698387890d23c4437383a5d29b88 mde committed Mar 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/validators.js
View
@@ -95,7 +95,7 @@ var validators = {
// If a specific length is wanted, there has to be a value
// in the first place
if (!val) {
- return i18n.getText('model.validatesPresent', {name: name}, locale);
+ return rule.message || i18n.getText('model.validatesPresent', {name: name}, locale);
}
// Validate that there's a qualifier to check against

0 comments on commit 0e6f8a3

Please sign in to comment.