classdojo / crisco

MIT License
0 stars 0 forks source link

Before hooks should allow custom, possibly inline, functions #17

Open cdolivares opened 11 years ago

cdolivares commented 11 years ago
class SomeAction extends BaseAction
  @before
    authenticate: 'all'
    custom: ((CriscoAction, Aux, next) -> console.log("custom1"); next()), 'all'
    custom: ((CriscoAction, Aux, next) -> console.log("custom2"); next()), 'all'