Permalink
Browse files

fixed whereIn

  • Loading branch information...
1 parent 0277f8f commit 0c99500508815d4a8966a754fac97b24fed82c4e @joeferner committed Oct 26, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −0 lib/model.js
  2. +0 −1 lib/query.js
View
@@ -441,6 +441,12 @@ exports.define = function (name, columnDefs) {
};
Model.where = persistUtil.bind('where', Model.where, Model);
+ Model.whereIn = function () {
+ var query = this.using(null);
+ return query.whereIn.apply(query, arguments);
+ };
+ Model.whereIn = persistUtil.bind('whereIn', Model.whereIn, Model);
+
Model.include = function () {
var query = this.using(null);
return query.include.apply(query, arguments);
View
@@ -72,7 +72,6 @@ Query.prototype.whereIn = function() {
this.where(expr, params);
}
-
return this;
};

0 comments on commit 0c99500

Please sign in to comment.