import { ActiveModelSerializer } from 'ember-cli-mirage';

export default ActiveModelSerializer.extend({
  include: ['target'],
  embed: true,
  keyForModel(modelName) {
    if (modelName === 'target-stream') {
      return 'target';
    }
    return ActiveModelSerializer.prototype.keyForModel.apply(this, arguments);
  }
});
