From: Shawn M Moore Date: Fri, 22 May 2009 03:25:09 +0000 (-0400) Subject: Use class_of instead of CMOPC->initialize X-Git-Tag: 0.80~78 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4a8a45bcebb83fc369737c7c390ed03d1be0ad90;p=gitmo%2FMoose.git Use class_of instead of CMOPC->initialize --- diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index 375b2d8..ff8a296 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -419,7 +419,7 @@ Moose::Exporter - make an import() and unimport() just like Moose.pm sub has_rw { my ($caller, $name, %options) = @_; - Class::MOP::Class->initialize($caller)->add_attribute($name, + Class::MOP::class_of($caller)->add_attribute($name, is => 'rw', %options, );