From: Yuval Kogman Date: Fri, 24 Apr 2009 01:52:57 +0000 (+0200) Subject: use replace_constructor X-Git-Tag: 0.05~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=48db557d09f3c3a96edab50231aba9da6bde89d7;p=gitmo%2FMooseX-Role-Parameterized.git use replace_constructor This forces an inlined version of Moose::Object::new to be installed as _new even though it's not part of the inheritence chain. --- diff --git a/lib/MooseX/Role/Parameterized/Meta/Parameter.pm b/lib/MooseX/Role/Parameterized/Meta/Parameter.pm index a37f643..d3a5ae0 100644 --- a/lib/MooseX/Role/Parameterized/Meta/Parameter.pm +++ b/lib/MooseX/Role/Parameterized/Meta/Parameter.pm @@ -19,6 +19,7 @@ around _process_options => sub { __PACKAGE__->meta->make_immutable( inline_constructor => 1, + replace_constructor => 1, constructor_name => "_new", ); no Moose;