init_arg => undef,
);
+has action_args => (is => 'ro');
+
# ->config(actions => { '*' => ...
has _all_actions_attributes => (
is => 'ro',
my %args = @_;
my $class = $self->action_class(%args);
- my $action_args = $self->config->{action_args};
+ my $action_args = (
+ ref($self)
+ ? $self->action_args
+ : $self->config->{action_args}
+ );
my %extra_args = (
%{ $action_args->{'*'} || {} },
Allows you to set the attributes that the dispatcher creates actions out of.
This allows you to do 'rails style routes', or override some of the
-attribute defintions of actions composed from Roles.
+attribute definitions of actions composed from Roles.
You can set arguments globally (for all actions of the controller) and
specifically (for a single action).