[Catalyst] In ActionRole is NotDoes Available?

Sheeju Alex sheejuec7 at gmail.com
Thu Dec 5 05:35:06 GMT 2013


Hi All,

    I have applied some Action Roles to all the controllers to work without
specifying Does keyword in every action function. Now I have a situation
where I want "NotDoes" function so that I don't use one of the default
Roles.

For Eg:

package MyApp::Controller::Bar<https://metacpan.org/module/MyApp::Controlle=
r::Bar>

use Moose <https://metacpan.org/module/Moose>;
use namespace::autoclean <https://metacpan.org/module/namespace::autoclean>;

BEGIN { extends 'Catalyst::Controller::ActionRole' }

__PACKAGE__->config(
    action_roles =3D> ['Foo', 'Bar'],
);

sub moo : Local { ... }

*sub go : Path NotDoes('Foo') { ... }*

Please let me know how can I do this?


Best Regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20131205/d835b=
d64/attachment.htm


More information about the Catalyst mailing list