c9482786c1
Replaces Ember's old object model by native ECMAScript classes. Mostly automated with ember-native-class-codemod.
9 lines
290 B
JavaScript
9 lines
290 B
JavaScript
import classic from 'ember-classic-decorator';
|
|
import Alias from 'ember-cp-validations/validators/alias';
|
|
|
|
@classic
|
|
export default class AliasValidator extends Alias {
|
|
validate(value, options, model, attribute) {
|
|
return super.validate(value, options, model, attribute) || true;
|
|
}
|
|
}
|