Add _expected_method_class for compat with latest CMOP
Dave Rolsky [Fri, 24 Apr 2009 15:05:02 +0000 (10:05 -0500)]
lib/MooseX/Singleton/Meta/Method/Constructor.pm

index b24db58..f1dadde 100644 (file)
@@ -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';
 }