Use around for full sugar experience.
Dave Rolsky [Mon, 17 Dec 2007 20:34:20 +0000 (20:34 +0000)]
lib/MooseX/StrictConstructor/Meta/Class.pm

index 78a639d..d3a9694 100644 (file)
@@ -9,12 +9,13 @@ use Moose;
 
 extends 'Moose::Meta::Class';
 
-override 'make_immutable' => sub ## no critic RequireArgUnpacking
+around 'make_immutable' => sub ## no critic RequireArgUnpacking
 {
+    my $orig = shift;
     my $self = shift;
 
     return
-        $self->SUPER::make_immutable
+        $self->$orig
             ( constructor_class => 'MooseX::StrictConstructor::Meta::Method::Constructor',
               @_,
             );