Use $META since we have it
Shawn M Moore [Sat, 28 Mar 2009 20:46:18 +0000 (16:46 -0400)]
lib/Moose/Meta/Role.pm

index 7738207..05e4c05 100644 (file)
@@ -256,7 +256,7 @@ sub update_package_cache_flag {
 ## ------------------------------------------------------------------
 ## subroles
 
-__PACKAGE__->meta->add_attribute('roles' => (
+$META->add_attribute('roles' => (
     reader  => 'get_roles',
     default => sub { [] }
 ));