Skip to content

Instantly share code, notes, and snippets.

@moltar
Created November 19, 2012 22:23
Show Gist options
  • Save moltar/4114439 to your computer and use it in GitHub Desktop.
Save moltar/4114439 to your computer and use it in GitHub Desktop.
catalyst chaining question
package SW::Web::Controller::Manufacturer;
use Moose;
use namespace::autoclean;
BEGIN { extends 'Catalyst::Controller'; }
__PACKAGE__->config(namespace => 'm');
sub create : Chained('/superuser') PathPart('m/create') Args(0) {
my ($self, $c) = @_;
$c->res->body('ok');
return 1;
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment