Skip to content

Commit

Permalink
Merge 3d7c4d1 into a497830
Browse files Browse the repository at this point in the history
  • Loading branch information
jevakallio committed Jun 30, 2015
2 parents a497830 + 3d7c4d1 commit 03545cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/query/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,13 @@ assign(Builder.prototype, {
return this
},

// Passes query to provided callback function, useful for e.g. composing
// domain-specific helpers
compose: function(callback) {
callback.apply(this, _.rest(arguments));
return this;
},

// ----------------------------------------------------------------------

// Helper for the incrementing/decrementing queries.
Expand Down

0 comments on commit 03545cc

Please sign in to comment.