Skip to content

Commit

Permalink
minor touch up
Browse files Browse the repository at this point in the history
  • Loading branch information
danielspaniel committed Feb 12, 2016
1 parent 49ea462 commit 23a34d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/model-definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var ModelDefinition = function (model, config) {
var getRelationship = function (field) {
var modelClass = FactoryGuy.get('store').modelFor(modelName);
var relationship = Ember.get(modelClass, 'relationshipsByName').get(field);
return !!relationship ? relationship : null;
return relationship || null;
};
/**
@param {String} name model name like 'user' or named type like 'admin'
Expand Down

0 comments on commit 23a34d9

Please sign in to comment.