[Catalyst] Re: Chained and exceptions

Aristotle Pagaltzis pagaltzis at gmx.de
Fri May 10 04:34:32 GMT 2013

* Bill Moseley <moseley at hank.org> [2013-05-09 22:50]:
> Tricks for applying it globally?

    package MyApp::Controller;
    use parent 'Catalyst::Controller';
    __PACKAGE__->config( action_roles => ['DetachOnDie'] );

Then inherit that instead of Catalyst::Controller in your controllers.

Pre-5.90013 you need `use parent 'Catalyst::Controller::ActionRole';`
(got merged into Catalyst::Controller in that release).

More information about the Catalyst mailing list