| 1 | package Catalyst::Action::RenderView::ErrorHandler::Action::Email; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.010001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | our $VERSION = '0.04'; | |
| 9 | |||
| 10 | 1 | with 'Catalyst::Action::RenderView::ErrorHandler::Action'; | |
| 11 | |||
| 12 | 0 | ▶ | has 'options' => (is => 'rw', isa => 'HashRef', default => sub { [] }); |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 13 | 1 | has 'view' => (is => 'ro', isa => 'Str'); | |
| 14 | |||
| 15 | 0 | ▶ | sub perform { |
|
Subroutine
perform: not called CC=2 SCAR=17.9
Pod
undocumented
| |||
| 16 | 0 | my $self = shift; | |
| 17 | 0 | my $c = shift; | |
| 18 | |||
| 19 | #Add defined options field to catalyst stash | ||
| 20 | 0 | foreach my $key (keys %{$self->{options}}) { | |
| 21 | $c->stash->{email}->{$key} = $self | ||
| 22 | 0 | ->{options}->{$key}; | |
| 23 | } | ||
| 24 | |||
| 25 | 0 | $c->forward( $c->view($self->view) ); | |
| 26 | } | ||
| 27 | |||
| 28 | 1 | 1; | |
| 29 | __END__ | ||