Skip to content

Commit

Permalink
Changing argument for dynamic, query function from knex#45
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser committed Aug 19, 2013
1 parent 6f7cd64 commit d59bac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bookshelf.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
if (args.length === 0) return this._builder;
var method = args[0];
if (_.isFunction(method)) {
method.apply(this._builder, args.slice(1));
method.apply(this._builder, this._builder);
} else if (_.isObject(method)) {
for (var key in method) {
var target = _.isArray(method[key]) ? method[key] : [method[key]];
Expand Down

0 comments on commit d59bac4

Please sign in to comment.