strongloop/loopback — pull request #520 by okland (2014-08-31 08:49:45+00:00)
Title: WIP: Allow using multi before/after functions in model

For example:
Model,before(['create', 'upsert'], function(ctx, user, next) {
// function is called before all 'create' and 'upsert' methods.
});

Signed-off-by: Omri Klinger