register plugin
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 26 Jun 2010 21:16:55 +0000 (23:16 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 26 Jun 2010 21:16:55 +0000 (23:16 +0200)
I tried to setup $self->plugins->namespaces but it didn't work for me.

lib/MojoFacets.pm

index fb45ed5..cfddc99 100644 (file)
@@ -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 );
 }