refs #5250 Self.validatesPresenceOf

This commit is contained in:
Carlos Satorres 2023-03-28 10:07:14 +02:00
parent c68c78cc5b
commit 564165dc0f
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
module.exports = function(Self) {
Self.validate('text', isEnabled, {message: 'Description cannot be blank'});
Self.validatesPresenceOf('text', isEnabled, {message: 'Description cannot be blank'});
function isEnabled(err) {
if (!this.text) err();
}