Add _expected_method_class for compat with latest CMOP
[gitmo/MooseX-Singleton.git] / 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';
 }