stefanpenner/data — pull request #4 by teddyzeenny (2013-04-29 14:12:49+00:00)
Title: Promisify fixtures

This is an initial attempt at making fixture adapter use promises.

**Two things we need to decide:**

### How to handle Ember.assert inside the fixture adapter.

I think they are not related to application runtime exceptions, more of a development error, so I decided to keep them out of the promise (so they don't silently turn into rejections). I think development errors should be loud and interrupting.

### There should be a kind of pre-decided protocol for rejection reasons between the store and adapters.
The store shouldn't get an `xhr` rejection as a reason, because then we would be tying application logic to adapter logic. IMO both the fixture and rest adapter (and any other adapter) should return the same rejection format, such as 404 (for record not found)..etc