From: Dobrica Pavlinusic Date: Sat, 26 Jun 2010 21:16:55 +0000 (+0200) Subject: register plugin X-Git-Url: http://git.rot13.org/?p=MojoFacets.git;a=commitdiff_plain;h=29afad5b3be03cf0111193d5fc60b97d0bfddb19 register plugin I tried to setup $self->plugins->namespaces but it didn't work for me. --- diff --git a/lib/MojoFacets.pm b/lib/MojoFacets.pm index fb45ed5..cfddc99 100644 --- a/lib/MojoFacets.pm +++ b/lib/MojoFacets.pm @@ -38,6 +38,7 @@ sub save_tx { } } +use MojoFacets::Plugin::NYTProf; # This method will run once at server start sub startup { @@ -58,6 +59,8 @@ sub startup { save_tx( $self, $tx ); } ); + + MojoFacets::Plugin::NYTProf->register( $self ); }