From: Dave Rolsky Date: Fri, 24 Apr 2009 15:05:02 +0000 (-0500) Subject: Add _expected_method_class for compat with latest CMOP X-Git-Tag: 0.16~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Singleton.git;a=commitdiff_plain;h=dbeedf9e84cf71bc153a91eed958bb11d9c63ded Add _expected_method_class for compat with latest CMOP --- diff --git a/lib/MooseX/Singleton/Meta/Method/Constructor.pm b/lib/MooseX/Singleton/Meta/Method/Constructor.pm index b24db58..f1dadde 100644 --- a/lib/MooseX/Singleton/Meta/Method/Constructor.pm +++ b/lib/MooseX/Singleton/Meta/Method/Constructor.pm @@ -56,6 +56,12 @@ sub _initialize_body { $self->{'body'} = $code; } +# For CMOP 0.82_01+ +sub _expected_method_class { + return 'MooseX::Singleton::Object'; +} + +# For older versions of Moose/CMOP sub _expected_constructor_class { return 'MooseX::Singleton::Object'; }