Skip to content

Instantly share code, notes, and snippets.

@guilhermedecampo
Forked from gabrielhpugliese/transform.js
Created May 7, 2014 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilhermedecampo/d8aa6200b5e628d7d013 to your computer and use it in GitHub Desktop.
Save guilhermedecampo/d8aa6200b5e628d7d013 to your computer and use it in GitHub Desktop.
HelpRequests = new Meteor.Collection('helpRequests', {
transform: function (doc) {
doc.isCancelled = function () {
return _.contains(['cancel-requester', 'cancel-helper'], this.status);
}
return doc;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment