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

export default ActiveModelSerializer.extend({
  include: ['user'],
  embed: true,
  keyForCollection() {
    return 'follows';
  },

  // TODO: investigate deleting this hook
  keyForModel(modelName) {
    if (modelName === 'user') {
      return 'user';
    }
    return ActiveModelSerializer.prototype.keyForModel.apply(this, arguments);
  }
});
