From: Shawn M Moore Date: Sat, 24 May 2008 17:52:00 +0000 (+0000) Subject: Add a confess to intialize_body in the Moose::Meta::Method::Constructor, to catch... X-Git-Tag: 0_55~152 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=384c126d0cd8ed1d08fe8fc8f7e13228d5587765;p=gitmo%2FMoose.git Add a confess to intialize_body in the Moose::Meta::Method::Constructor, to catch any other code using that particular misspelling --- diff --git a/lib/Moose/Meta/Method/Constructor.pm b/lib/Moose/Meta/Method/Constructor.pm index 5261e43..d0ebad2 100644 --- a/lib/Moose/Meta/Method/Constructor.pm +++ b/lib/Moose/Meta/Method/Constructor.pm @@ -56,6 +56,10 @@ sub associated_metaclass { (shift)->{'$!associated_metaclass'} } ## method +# this was changed in 0.41, but broke MooseX::Singleton, so try to catch +# any other code using the original broken spelling +sub intialize_body { confess "Please correct the spelling of 'intialize_body' to 'initialize_body'" } + sub initialize_body { my $self = shift; # TODO: