Permalink
Browse files

Merge branch 'master' of github.com:mde/model

  • Loading branch information...
2 parents d4034f1 + e6c1ba3 commit 35e67343a2cb0687d4e6876d38cc105de79288c5 mde committed Sep 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/index.js
View
@@ -216,7 +216,7 @@ utils.mixin(model, new (function () {
// I belong to the other model; look for the item
// whose id matches my foreign key for that model
if (assnType == 'belongsTo') {
- query.id = this[otherKeyName + '(Id'];
+ query.id = this[otherKeyName + 'Id'];
}
// The other model belongs to me; look for any
// items whose foreign keys match my id

0 comments on commit 35e6734

Please sign in to comment.