From: Shawn M Moore Date: Wed, 15 Apr 2009 20:34:42 +0000 (-0400) Subject: Pass metaclass to init_meta X-Git-Tag: 0.75~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=89bcd625273713fcad624130cb46bdeb90b328bb;p=gitmo%2FMoose.git Pass metaclass to init_meta --- diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index d62f1cf..122574b 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -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; }