Created
September 4, 2013 08:49
-
-
Save listochkin/6434428 to your computer and use it in GitHub Desktop.
Support for App.Person.find({name: 'Tom'})
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.Store = DS.Store.extend({ | |
adapter: DS.FixtureAdapter.extend({ | |
queryFixtures: function(fixtures, query, type) { | |
return fixtures.filter(function (fixture) { | |
for (var key in query) { | |
if (fixture[key] != query[key]) // type coercion required | |
return false; | |
} | |
return true; | |
}); | |
} | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment