Skip to content

Commit

Permalink
moved package
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftworks committed Aug 31, 2009
1 parent f5261dc commit cdd9b6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
@@ -1,4 +1,4 @@
package Engage::WUI::Base::Application;
package Engage::WUI::Application;

use Moose;
use Catalyst::Runtime 5.80;
Expand All @@ -14,16 +14,15 @@ BEGIN {
$StartedOn = Time::HiRes::time;
}

after setup_finalize => sub {
after 'setup_finalize' => sub {
my $c = shift;
$c->log->info(sprintf 'Setup took %0.6fs', Time::HiRes::time - $StartedOn );
$c->log->_flush if $c->log->can('_flush');
};

override finalize => sub {
after 'finalize_error' => sub {
my $c = shift;
$c->forward('/error/handle_exception') if @{ $c->error };
$c->next::method( @_ );
$c->forward('/error/handle_exception');
};

no Moose;
Expand Down
@@ -1,4 +1,4 @@
package Engage::WUI::Base::Controller::Error;
package Engage::WUI::Controller::Error;

use Moose;
use HTTP::Status;
Expand Down
@@ -1,4 +1,4 @@
package Engage::WUI::Base::Controller::Root;
package Engage::WUI::Controller::Root;

=head1 NAME
Expand Down

0 comments on commit cdd9b6f

Please sign in to comment.