| author | nowmad@nowmads-macbook-pro.local |
| Fri, 15 Jan 2016 15:49:42 +0100 | |
| changeset 84 | 36f84e8f1ad5 |
| parent 69 | 87946963c3bb |
| child 90 | f0609941aa98 |
| permissions | -rw-r--r-- |
import DS from 'ember-data'; export default DS.FixtureAdapter.extend({ host: 'http://127.0.0.1', namespace: 'api', queryFixtures: function(records, query, type) { return records.filter(function(record) { for(var key in query) { if (!query.hasOwnProperty(key)) { continue; } var value = query[key]; if (record[key] !== value) { return false; } } return true; }); } });