Skip to content

Instantly share code, notes, and snippets.

View michaelorionmcmanus's full-sized avatar

Michael McManus michaelorionmcmanus

View GitHub Profile
@michaelorionmcmanus
michaelorionmcmanus / ember-data.dependent-relations.js
Last active August 29, 2015 14:02 — forked from slindberg/ember-data.dependent-relations.js
Be blind to order of record arrays when checking dirtiness of dependent relation
/**
Ember Data: Dependent Relationships
This package extends Ember Data to support creating relationships
where a model's dirty state depends not only on its own attributes
but on the dirty state of models in dependent relationships as well.
```javascript
App.Thing = DS.Model.extend({
name : DS.attr('string'),