Pass metaclass to init_meta
Shawn M Moore [Wed, 15 Apr 2009 20:34:42 +0000 (16:34 -0400)]
lib/Moose/Exporter.pm

index d62f1cf..122574b 100644 (file)
@@ -259,7 +259,7 @@ sub _make_import_sub {
             # Moose::Exporter, which in turn sets $CALLER, so we need
             # to protect against that.
             local $CALLER = $CALLER;
-            $c->init_meta( for_class => $CALLER );
+            $c->init_meta( for_class => $CALLER, metaclass => $metaclass );
             $did_init_meta = 1;
         }