Subject: | plugin relies on deprecated NEXT method, generates warnings. |
this plugin generates warnings about the deprecated NEXT method.
Simple to patch:
--- /Library/Perl/5.8.8/Catalyst/Plugin/Assets.pm 2008-07-26
12:24:44.000000000 -0700
+++ lib/Catalyst/Plugin/Assets.pm 2010-02-12
13:41:57.000000000 -0800
@@ -142,7 +142,7 @@
sub setup {
my $catalyst = shift;
- $catalyst->NEXT::setup(@_);
+ $catalyst->maybe::next::method(@_);
my $config;
if ($config = $catalyst->config->{'Plugin::Assets'}) {
@@ -165,7 +165,7 @@
sub prepare {
my $self = shift;
- my $catalyst = $self->NEXT::prepare(@_);
+ my $catalyst = $self->maybe::next::method(@_);
$catalyst->assets; # Instantiate some new assets to use for this
request