c9482786c1
Replaces Ember's old object model by native ECMAScript classes. Mostly automated with ember-native-class-codemod.
11 lines
313 B
JavaScript
11 lines
313 B
JavaScript
import classic from 'ember-classic-decorator';
|
|
import BaseValidator from 'ember-cp-validations/validators/base';
|
|
|
|
@classic
|
|
class FalsyValidator extends BaseValidator {
|
|
validate(value, options) {
|
|
return value ? this.createErrorMessage('iso8601', value, options) : true;
|
|
}
|
|
}
|
|
|
|
export default FalsyValidator;
|