Closed trusktr closed 8 years ago
+1 how to do it ?
_.each([Meteor.users, Products, Posts, Items], function(collection) {
collection.before.insert();
});
@crapthings That definitely works. I also just looked and see this: https://github.com/matb33/meteor-collection-hooks/blob/master/collection-hooks.js#L10-L15
Looks like we can put stuff in the defaults property there.
@matb33 ?
+1 - How can I do this ?
Agreed this would be useful
Is it
CollectionHooks.before.<hookName>(function() {...})
?