Skip to content

Instantly share code, notes, and snippets.

@csprocket777
csprocket777 / ember-data.dependent-relations.js
Last active March 23, 2016 21:47 — forked from cyk/ember-data.dependent-relations.js
Dependent Relationships in Ember Data (for Ember Data v1.13.x) (removed dirty related record dirties parent)
/**
Ember Data: Dependent Relationships (Ember Data v1.13.x)
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'),
/**
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'),