From: Shawn M Moore Date: Sat, 28 Mar 2009 21:05:32 +0000 (-0400) Subject: Use Class::MOP::Class->initialize for Moose::Object::new X-Git-Tag: 0.73_01~36^2~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e601e434da0d7ef81a1e03f0cd89178b9400546a;p=gitmo%2FMoose.git Use Class::MOP::Class->initialize for Moose::Object::new --- diff --git a/lib/Moose/Object.pm b/lib/Moose/Object.pm index bef6506..cd35358 100644 --- a/lib/Moose/Object.pm +++ b/lib/Moose/Object.pm @@ -14,7 +14,7 @@ our $AUTHORITY = 'cpan:STEVAN'; sub new { my $class = shift; my $params = $class->BUILDARGS(@_); - my $self = $class->meta->new_object($params); + my $self = Class::MOP::Class->initialize($class)->new_object($params); $self->BUILDALL($params); return $self; }