Move Controller::ActionRole's functionality into the core.
[catagits/Catalyst-Runtime.git] / t / lib / Catalyst / Action / TestAfter.pm
CommitLineData
734a1e11 1package Catalyst::Action::TestAfter;
2
3use strict;
4use warnings;
5
eff60019 6use base qw/Catalyst::Action/; # N.B. Keep as a non-moose class, this also
7 # tests metaclass initialization works as expected
734a1e11 8
9sub execute {
10 my $self = shift;
11 my ( $controller, $c ) = @_;
dbb2d5cd 12 $self->next::method( @_ );
734a1e11 13 $c->res->header( 'X-Action-After', $c->stash->{after_message} );
14}
15
161;