Created
May 7, 2014 03:00
-
-
Save gabrielhpugliese/25c3439ebd48d14bd65b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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