From: Tomas Doran Date: Thu, 2 Apr 2009 00:23:26 +0000 (+0000) Subject: We actually need Moose::Object::meta to avoid metaclass incompat fail, or at least... X-Git-Tag: 5.80001~40^2~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=4aa4c017da03300e96033ec7fa81b653b0aa2bea We actually need Moose::Object::meta to avoid metaclass incompat fail, or at least this fixes the test.. --- diff --git a/lib/Catalyst/ClassData.pm b/lib/Catalyst/ClassData.pm index 72062d9..954d777 100644 --- a/lib/Catalyst/ClassData.pm +++ b/lib/Catalyst/ClassData.pm @@ -13,7 +13,7 @@ sub mk_classdata { my $accessor = sub { my $pkg = ref $_[0] || $_[0]; # Hack - delberately create a metaclass instance - my $meta = $pkg->Class::MOP::Object::meta(); + my $meta = $pkg->Moose::Object::meta(); if (@_ > 1) { $meta->namespace->{$attribute} = \$_[1]; return $_[1];