use replace_constructor
Yuval Kogman [Fri, 24 Apr 2009 01:52:57 +0000 (03:52 +0200)]
This forces an inlined version of Moose::Object::new to be installed as
_new even though it's not part of the inheritence chain.

lib/MooseX/Role/Parameterized/Meta/Parameter.pm

index a37f643..d3a5ae0 100644 (file)
@@ -19,6 +19,7 @@ around _process_options => sub {
 
 __PACKAGE__->meta->make_immutable(
     inline_constructor => 1,
+    replace_constructor => 1,
     constructor_name   => "_new",
 );
 no Moose;