import DS from 'ember-data';

export default DS.FixtureAdapter.extend({
});

import DS from 'ember-data';

export default DS.FixtureAdapter.extend({
  // allow fixtures to be queried
  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;
    });
  }
});

Allow the fixture adapter to be queried.
Allow the fixture adapter to be queried.