Fix base class deprecation
Marcus Ramberg [Sun, 12 Apr 2009 17:39:08 +0000 (17:39 +0000)]
lib/Catalyst/Base.pm

index 6ef8fd3..63b9ba6 100644 (file)
@@ -1,13 +1,14 @@
 package Catalyst::Base;
 use Moose;
 BEGIN { extends 'Catalyst::Controller' }
-no Moose;
 
 after 'BUILD' => sub {
     my $self = shift;
     warn(ref($self) . " is using the deprecated Catalyst::Base, update your application as this will be removed in the next major release");
 };
 
+no Moose;
+
 1;
 
 __END__