=head1 SYNOPSIS
- <form action="[%c.uri_for(c.action.reverse)%]">
+ <form action="[%c.uri_for(c.action)%]">
=head1 DESCRIPTION
-This class represents a Catalyst Action. You can access the object for the
+This class represents a Catalyst Action. You can access the object for the
currently dispatched action via $c->action. See the L<Catalyst::Dispatcher>
for more information on how actions are dispatched. Actions are defined in
L<Catalyst::Controller> subclasses.
use Moose;
+with 'MooseX::Emulate::Class::Accessor::Fast';
+
has class => (is => 'rw');
has namespace => (is => 'rw');
has 'reverse' => (is => 'rw');
sub match {
my ( $self, $c ) = @_;
#would it be unreasonable to store the number of arguments
- #the action has as it's own attribute?
+ #the action has as its own attribute?
#it would basically eliminate the code below. ehhh. small fish
return 1 unless exists $self->attributes->{Args};
my $args = $self->attributes->{Args}[0];