From: gfx Date: Sat, 16 Jan 2010 05:02:42 +0000 (+0900) Subject: Fix the class for init_meta() X-Git-Tag: 0.48~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=134f7bcb2b50fa3d9751712d93885c618bf24ccb;p=gitmo%2FMouse.git Fix the class for init_meta() --- diff --git a/lib/Mouse/Exporter.pm b/lib/Mouse/Exporter.pm index b473eb9..934b1c3 100644 --- a/lib/Mouse/Exporter.pm +++ b/lib/Mouse/Exporter.pm @@ -171,7 +171,7 @@ sub do_import { if($spec->{INIT_META}){ my $meta; foreach my $init_meta(@{$spec->{INIT_META}}){ - $meta = $into->$init_meta(for_class => $into); + $meta = $package->$init_meta(for_class => $into); } if(@traits){