cms/app-client/app/adapters/application.js
author nowmad@nowmads-macbook-pro.local
Wed, 20 Jan 2016 00:15:46 +0100
changeset 87 24fef043ea0b
parent 69 87946963c3bb
child 90 f0609941aa98
permissions -rw-r--r--
add control to go next/previous sound

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;
    });
  }
});