keep the same return value init_meta had previously
Jesse Luehrs [Sun, 6 May 2012 18:02:22 +0000 (13:02 -0500)]
lib/Moose/Exporter.pm

index b32f302..fc3a495 100644 (file)
@@ -737,7 +737,11 @@ sub _make_init_meta {
 
     return unless %new_style_roles || %old_style_roles || %base_class_roles;
 
-    return sub { };
+    return sub {
+        shift;
+        my %opts = @_;
+        $meta_lookup->($opts{for_class});
+    };
 }
 
 sub import {