From: Jesse Luehrs Date: Fri, 2 Apr 2010 22:30:33 +0000 (-0500) Subject: don't initialize delegate classes with Moose::Meta::Class X-Git-Tag: 1.05~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=88389e144540719a1eca2568e2d674cbe9510866;p=gitmo%2FMoose.git don't initialize delegate classes with Moose::Meta::Class --- diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index 733e8a8..f696a79 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -686,7 +686,7 @@ sub _find_delegate_metaclass { # we might be dealing with a non-Moose class, # and need to make our own metaclass. if there's # already a metaclass, it will be returned - return Moose::Meta::Class->initialize($class); + return Class::MOP::Class->initialize($class); } elsif (my $role = $self->_does_metadata) { return Class::MOP::class_of($role);