[Catalyst-dev] Possible bug in Catalyst-Devel-1.05 [Patch]
Emanuele Zeppieri
ema_zep at libero.it
Wed Apr 9 07:08:07 BST 2008
Good morning!
Marcus,
is the following (line 622) in Helper.pm correct?
[% name %]->plugins(qw/-Debug ConfigLoader Static::Simple/);
since there is no "plugins" method in Catalyst.pm <=3D 5.7012 ...
If I understand correctly, according to the /new style/, it should =
instead be:
__PACKAGE__->setup(qw/-Debug ConfigLoader Static::Simple/);
In case I'm right, the attached patch does just that.
Cheers,
Emanuele
-------------- next part --------------
--- Helper.pm 2008-04-07 11:55:12.000000000 +0200
+++ Helper.pm.new 2008-04-09 07:17:21.014000000 +0200
@@ -619,8 +619,6 @@
=
use parent qw/Catalyst/;
=
-[% name %]->plugins(qw/-Debug ConfigLoader Static::Simple/);
-
our $VERSION =3D '0.01';
=
# Configure the application. =
@@ -635,7 +633,7 @@
__PACKAGE__->config( name =3D> '[% name %]' );
=
# Start the application
-__PACKAGE__->setup;
+__PACKAGE__->setup(qw/-Debug ConfigLoader Static::Simple/);
=
=
=3Dhead1 NAME
More information about the Catalyst-dev
mailing list