Use class_of instead of CMOPC->initialize
Shawn M Moore [Fri, 22 May 2009 03:25:09 +0000 (23:25 -0400)]
lib/Moose/Exporter.pm

index 375b2d8..ff8a296 100644 (file)
@@ -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,
       );