From: Jesse Luehrs Date: Tue, 23 Jun 2009 05:23:27 +0000 (-0500) Subject: need to initialize a moose meta if called from Moose::Meta::Class X-Git-Tag: 0.88~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=07302fb3e471d29d74226d612dea6719df21e421;p=gitmo%2FClass-MOP.git need to initialize a moose meta if called from Moose::Meta::Class --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 81e4ebe..f6a4c20 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1106,7 +1106,7 @@ sub _immutable_metaclass { else { my @super = ( $trait, ref($self) ); - my $meta = Class::MOP::Class->initialize($class_name); + my $meta = $self->initialize($class_name); $meta->superclasses(@super); $meta->make_immutable;