github.com/outbrain/consul@v1.4.5/ui-v2/app/services/repository/acl.js (about)

     1  import RepositoryService from 'consul-ui/services/repository';
     2  import { get } from '@ember/object';
     3  import { PRIMARY_KEY } from 'consul-ui/models/acl';
     4  const modelName = 'acl';
     5  export default RepositoryService.extend({
     6    getModelName: function() {
     7      return modelName;
     8    },
     9    getPrimaryKey: function() {
    10      return PRIMARY_KEY;
    11    },
    12    clone: function(item) {
    13      return get(this, 'store').clone(this.getModelName(), get(item, this.getPrimaryKey()));
    14    },
    15  });