import EmberObject from '@ember/object';
import classic from 'ember-classic-decorator';

@classic
export default class DummyValidationAdapter extends EmberObject {
  validate() {
    return this.object.validate();
  }

  get attributes() {
    return this.object.validationsDummy;
  }
}

import EmberObject from '@ember/object';
import classic from 'ember-classic-decorator';
import { dependentKeyCompat } from '@ember/object/compat';

@classic
export default class DummyValidationAdapter extends EmberObject {
  validate() {
    if (this.object?.validate) {
      return this.object.validate();
    }
  }

  @dependentKeyCompat
  get attributes() {
    return this.object?.validationsDummy;
  }
}

fix 3.16 compatibility