Skip to content

Commit

Permalink
Add check for meta.descs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Weeks committed Apr 23, 2015
1 parent b8bf2c4 commit 84e25f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-model/lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Ember.Model = Ember.Object.extend(Ember.Evented, {
var relationships = this.constructor._relationships || [], meta = Ember.meta(this), relationshipKey, relationship, relationshipMeta, relationshipData, relationshipType;
for (var i = 0, l = relationships.length; i < l; i++) {
relationshipKey = relationships[i];
relationship = this[relationshipKey];
relationship = (meta.descs || this)[relationshipKey];
relationshipMeta = relationship.meta();

if (relationshipMeta.options.embedded) {
Expand Down

0 comments on commit 84e25f6

Please sign in to comment.